Manual Pages
Table of Contents
na_cifs_shares - Configures and displays CIFS shares
information.
cifs shares [ sharename ]
cifs shares -add sharename path
[ -f ]
[ -comment description ]
[ -maxusers userlimit ]
[ -forcegroup groupname ]
[ -nosymlink_strict_security ]
[ -widelink ]
[ -umask mask ]
[ -dir_umask mask ]
[ -file_umask mask ]
[ -nobrowse ]
[ -novscan ]
[ -novscanread ]
[ -no_caching | -auto_document_caching
-auto_program_caching | -branchcache ]
[ -accessbasedenum ]
cifs shares -change sharename
{ -comment description | -nocomment }
{ -maxusers userlimit | -nomaxusers }
{ -forcegroup groupname | -noforcegroup }
- {
- -nosymlink_strict_security
-symlink_strict_security }
{ -widelink | -nowidelink }
{ -umask mask | -noumask }
{ -dir_umask mask | -nodir_umask }
{ -file_umask mask | -nofile_umask }
{ -nobrowse | -browse }
{ -novscan | -vscan }
{ -novscanread | -vscanread }
{ -no_caching | -manual_caching
-auto_document_caching | -auto_program_caching
-branchcache }
{ -accessbasedenum | -noaccessbasedenum }
cifs shares -delete [ -f ] sharename
cifs shares -t
cifs shares displays one or more shares, edits one or more
shares, creates a share, deletes a share, or displays a
total summary of the shares.
Listing shares
To list the shares and their access control lists, use the
command cifs shares followed by the name of the share to
display. If the name contains the wildcard characters * or
? , then all the shares matching the specified name are
displayed.
To list all shares and their access control lists, use the
command cifs shares with no arguments or cifs shares *
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
Machine Account access disabled
DOMAIN\Engineering / Full Control
ENGRSW /vol/vol0/engr-sw Software Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
ENGRHW /vol/vol0/engr-hw Hardware Engineering
Machine Account access disabled
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
toaster> cifs shares eng*
ENGR /vol/vol0/engr Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
ENGRSW /vol/vol0/engr-sw Software Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
ENGRHW /vol/vol0/engr-hw Hardware Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
toaster> cifs shares engr??
ENGRSW /vol/vol0/engr-sw Software Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
ENGRHW /vol/vol0/engr-hw Hardware Engineering
Machine Account access disabled
DOMAIN\Engineering / Full Control
Creating new shares
To create a new share, use the -add option:
cifs shares -add sharename path
[ -f ]
[ -comment description ]
[ -maxusers userlimit ]
[ -forcegroup groupname ]
[ -nosymlink_strict_security ]
[ -widelink ]
[ -umask mask ]
[ -dir_umask mask ]
[ -file_umask mask ]
[ -nobrowse ]
[ -novscan ]
[ -novscanread ]
[ -no_caching | -auto_document_caching
-auto_program_caching | -branchcache ]
[ -accessbasedenum ]
- sharename
- Is the name of the new share; clients use this
name to access the share. The share name
cannot exceed 256 characters. Note that the
following 15 characters are invalid characters
for a share name: " / \ [ ] : | < > + ; , ? *
=
- path
- Full path name of the directory on the node
that corresponds to the root of the new share.
- -f
- Suppresses confirmation dialogs, if any. This
option will be deprecated in future releases.
A warning will be issued when share-names
exceed 8 characters.
- -comment description
-
Description of the new share. CIFS clients
see this description when browsing the nodes's
shares. If the description includes spaces, it
must be enclosed in double quotation marks.
If you do not specify a description, the
description is blank.
- -maxusers userlimit
-
Maximum number of simultaneous connections to
the new share. userlimit must be a positive
integer. If you do not specify a number, the
node does not impose a limit on the number of
connections to the share.
- -forcegroup groupname
-
Name of the group to which files to be created
in the share belong. The groupname is the name
of a group in the UNIX group database.
- -nosymlink_strict_security
-
Allows clients to follow symbolic links to
destinations on this node but outside of the
current share. Do not check that the client is
authenticated to the symbolic link's
destination.
- -widelink
- Allows clients to follow absolute symbolic
links outside of this share, subject to NT
security. This feature requires an entry in
the /etc/symlink.translations file and it
requires that the client supports Microsoft's
Distributed File System (Dfs).
- -umask mask Sets
- file mode creation mask for shares in
qtrees with UNIX or mixed security styles. The
mask is an octal value which restricts the
initial permissions setting of a newly created
file or directory. This mask may be overridden
by dir_umask or file_umask.
- -dir_umask mask
-
Sets file mode creation mask for shares in
qtrees with UNIX or mixed security styles. The
mask is an octal value which restricts the
initial permissions setting of a newly created
directory.
- -file_umask mask
-
Sets file mode creation mask for shares in
qtrees with UNIX or mixed security styles. The
mask is an octal value which restricts the
initial permissions setting of a newly created
file.
- -nobrowse
- Disables enumeration of this share by browsing
tools such as Server Manager or Active
Directory Users and Computers.
- -novscan
- Does not perform a virus scan when clients
open files on this share.
- -novscanread
-
Does not perform a virus scan when clients
open files on this share for read access.
- -no_caching Disallows Windows
- clients from caching any
files on this share.
- -auto_document_caching
-
Allows Windows clients to cache user documents
on this share. The actual caching behavior
depends upon the Windows client.
- -auto_program_caching
-
Allows Windows clients to cache programs on
this share. The actual caching behavior
depends upon the Windows client.
- -branchcache
-
Allows Windows clients to cache data on this
share. When another client requests for the
same content, it can access the cached copy
without having to read the data over the WAN.
It also enables manual caching for the share.
The actual BranchCache behavior depends upon
the Windows client.
- -accessbasedenum
-
Enables the ability to hide the folders and
files underneath this share when the user has
no permissions to read them.
By default, machine accounts have access to a newly
created share.
Deleting existing shares
To delete a share, use the -delete option:
cifs shares -delete sharename
sharename is the name of the share to be deleted. A share
cannot be deleted if it is in use unless the -f option is
used, in which case all current opens of the share are
immediately forced closed first.
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 }
- {
- -nosymlink_strict_security
-symlink_strict_security }
{ -widelink | -nowidelink }
{ -umask mask | -noumask }
{ -dir_umask mask | -nodir_umask }
{ -file_umask mask | -nofile_umask }
{ -nobrowse | -browse }
{ -novscan | -vscan }
{ -novscanread | -vscanread }
{ -no_caching | -manual_caching
-auto_document_caching
-auto_program_caching | -branchcache }
{ -accessbasedenum | -noaccessbasedenum }
The settings of a share can be changed at any time, even
if the share is in use.
sharename, if fully specified, is the name of the
existing share that is to be changed. If the
name contains the wildcard characters * or ?
, then all the shares matching the specified
name are to be changed.
- -comment description
-
Changes the description of the share. For more
information about the share description
setting, see the Creating new shares section
above.
- -nocomment
- Changes the description of the share to an
empty string.
- -maxusers userlimit
-
Changes the user limit on the share. For more
information about the user limit setting, see
the Creating new shares section above.
- -nomaxusers -Removes the user limit on the share.
-
- -forcegroup groupname
-
Changes the forcegroup setting. For more
information about the forcegroup setting, see
the Creating new shares section above.
- -noforcegroup
-
Specifies that files to be created in the
share do not belong to a particular UNIX
group. That is, each file belongs to the same
group as the owner of the file.
- -nosymlink_strict_security
-
Disables the symlink_strict_security setting.
For more information about the
symlink_strict_security setting, see the
Creating new shares section above.
- -symlink_strict_security
-
Enables the symlink_strict_security setting
for this share.
- -widelink
- Changes the widelink setting. For more
information about the widelink setting, see
the Creating new shares section above.
- -nowidelink Disables the widelink setting for this
- share.
- -umask mask Changes
- the umask setting. For more
information about the umask setting, see the
Creating new shares section above.
- -noumask
- Resets the umask value to 0.
- -dir_umask mask
-
Changes the dir_umask setting. For more
information about the dir_umask setting, see
the Creating new shares section above.
- -nodir_umask
-
Removes the dir_umask.
- -file_umask mask
-
Changes the file_umask setting. For more
information about the file_umask setting, see
the Creating new shares section above.
- -nofile_umask
-
Removes the file_umask.
- -nobrowse
- Disables enumeration of this share by
browsers. For more information about the
browse setting, see the Creating new shares
section above.
- -browse
- Enables enumeration of this share by browsers.
- -novscan
- Changes the share's virus scan setting. For
more information about the vscan setting, see
the Creating new shares section above.
- -vscan
- Enables virus scanning for this share.
- -novscanread
-
Changes the virus scan setting on this share
for read access. For more information about
the novscanread setting, see the Creating new
shares section above.
- -vscanread
- Specifies that files opened on this share for
read access should be scanned for viruses.
- -no_caching Disallows
- Windows clients from caching any
files on this share.
- -manual_caching
-
Allows users on Windows clients to manually
select files to be cached.
- -auto_document_caching
-
Allows Windows clients to cache user documents
on this share. The actual caching behavior
depends upon the Windows client.
- -auto_program_caching
-
Allows Windows clients to cache programs on
this share. The actual caching behavior
depends upon the Windows client.
- -branchcache
-
Allows Windows clients to cache data on this
share. When another client requests for the
same content, it can access the cached copy
without having to read the data over the WAN.
It also enables manual caching for the share.
The actual BranchCache behavior depends upon
the Windows client.
- -accessbasedenum
-
Enables the ability to hide the folders and
files underneath this share when the user has
no permissions to read them.
- -noaccessbasedenum
-
Disables the ability to hide the folders and
files underneath this share when the user has
no permissions to read them.
CIFS Home Directories
It is possible for some share settings to be applied to
users' CIFS home directories. The share setting will apply
to all user home directories. It is not possible to
specify per user settings. Similarly, if the node has
multiple CIFS homedir paths, it is not possible to specify
a setting that is per CIFS homedir path. To apply a share
setting to all CIFS home directories use the share name
cifs.homedir when entering a command. For example, to
disable virus scanning for all CIFS access to home
directories, a sysadmin would use the command:
FAS> cifs shares -change CIFS.HOMEDIR -novscan
To display the settings on CIFS home directories use the
command:
FAS> cifs shares CIFS.HOMEDIR
The following share settings can be applied to CIFS home
directories:
- -widelink
-
- -nowidelink
-
- -symlink_strict_security
-
- -nosymlink_strict_security
-
- -browse
-
- -nobrowse
-
- -vscan
-
- -novscan
-
- -vscanread
-
- -novscanread
-
- -umask
-
- -noumask
-
- -dir_umask
-
- -nodir_umask
-
- -file_umask
-
- -nofile_umask
-
- -no_caching
-
- -manual_caching
-
- -auto_document_caching
-
- -auto_program_caching
-
- -branchcache
-
- -accessbasedenum
-
- -noaccessbasedenum
-
Total Summary for shares
To display the summary of all the shares, use the -t
option:
cifs shares -t
Any changes take effect immediately
Changes are persistent across system reboots.
na_cifs_access(1)
Table of Contents