Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos

...

PropertyDescription
comment (string; Default: MikrotikSMB)Set comment for the server
domain (string; Default: MSHOME)Name of windows workgroupWindows Workgroup
enabled (yes | no | auto Default: auto)The default value is 'auto.' This means that the SMB server will automatically be enabled when the first non-disabled SMB share is configured under '/ip smb share'
interface (string; Default: all)List of interfaces on which SMB service will be running. all - SMB will be available on all interfaces.

...

Share settings

Sub-menu: /ip smb shareshares

Sub menu allows Allows configuring share names and directories that will be accessible by SMB.

...

PropertyDescription
comment (string; Default: default share)Set a comment for the share
disabled (yes | no; Default: no)If disabled, the share will not be accessible.

valid-users (list of strings; | Default:)

Specifies which users are allowed to access a particular the Samba share.

invalid-users (list of strings; | Default: )

Is used Used to specify users who are explicitly denied access to a the Samba share.

require-encriptionencryption (yes | no; Default: no)

Enforces the use of encryption for all connections to a particular Samba share
name (string; Default: )Name of the SMB share
directory (string; Default: )Directory on router assigned to SMB share. If left empty value of the name argument will be used from the root folder.

...

PropertyDescription
comment (string; Default: )Set a description for the user
disabled (yes | no; Default: no)Defines whether the user is enabled or disabled
name (string; Default: )Login name of the SMB service user
password (string; Default: )Password for SMB user to connect to SMB service
read-only (yes | no; Default: yes)Sets if the user has only read-only rights when accessing shares or full access rights.

Example

To make some RouterOS folder available through SMB service follow these steps: 

...

Code Block
languageros
/ip smb user add read-only=no name=mtuser password=mtpasswd 
  • add a shared folder:
Code Block
languageros
/ip smb share add name=backup

...

Now, additional configuration changes can be done, like disabling the default user and share, etc. 

Unsupported features

...