cifs shares sharename
cifs shares -add sharename path
[ -comment description ]
[ -maxusers userlimit ]
[ -forcegroup groupname ]
cifs shares -change sharename
{ -comment description | -nocomment }
{ -maxusers userlimit | -nomaxusers }
{ -forcegroup groupname | -noforcegroup }
cifs shares -delete sharename
Listing shares
To list all shares and their access control lists, use the
command cifs shares with no arguments. To list a single
share and its access control list, use the command cifs
shares sharename where sharename name of the share.
toaster> cifs shares
Name Mount Point Description
---- ----------- -----------
HOME /vol/vol0/home Default Share
everyone / Full Control
C$ /vol/vol0 Remote Administration
BUILTIN\Administrators / Full Control
ENGR /vol/vol0/engr Engineering
DOMAIN\Engineering / Full Control
NEWS /vol/vol0/news News
DOMAIN\Guests / No Access
everyone / Read
toaster> cifs shares news
Name Mount Point Description
---- ----------- -----------
NEWS /vol/vol0/news News
DOMAIN\Guests / No Access
everyone / Read
Creating new shares
To create a new share, use the -add option:
cifs shares -add sharename path
[ -comment description ]
[ -maxusers userlimit ]
[ -forcegroup groupname ]
sharename name of the new share; clients use this name to access the share.
cifs shares -delete sharename
Changing the settings of existing shares
To change the settings of an existing share, use the -change
option:
cifs shares -change sharename
{ -comment description | -nocomment }
{ -maxusers userlimit | -nomaxusers }
{ -forcegroup groupname | -noforcegroup }
The settings of a share can be changed at any time, even if the share is in use.
sharename is the name of the existing share that is to be changed.