Apple Mac OS X Server Network Card User Manual


 
Chapter 9 Working with File Services 135
To create a share point that uses AFP, FTP, and SMB/CIFS protocols:
Enter the following command, replacing 100GB with the name of the volume
containing the share point and Archive with the actual share point name:
$ sharing -a /Volumes/
100GB
/
Archive
To create a share point that appears differently for different users:
Enter the following command, replacing 100GB with the name of the volume
containing the share point and Windows with the actual share point name so that it
appears as WinDocs for server management purposes, and Documents for SMB/CIFS
file service users:
$ sharing -a /Volumes/100GB/Windows\ Docs -n WinDocs -S Documents -s 001
-o 1
This share point is shared using only the SMB/CIFS protocol with oplocks enabled.
Modifying a Share Point
To change share point settings:
$ sharing -e
sharepointname
[-n
customname
] [-A
afpname
] [-F
ftpname
] [-S
smbname
] [-s
shareflags
] [-g
guestflags
] [-i
inheritflags
]
[-c
creationmask
] [-d
directorymask
] [-o
oplockflag
]
[-t
strictlockingflag
]
guestflags A group of three flags indicating which protocols allow guest
access. The flags are written as a three-digit binary number with
the digits representing, from left to right, AFP, FTP, and SMB/CIFS.
1=guests allowed, 0=guests not allowed.
inheritflags A group of two flags indicating whether new items in AFP or SMB/
CIFS share points inherit the ownership and access permissions of
the parent folder. The flags are written as a two-digit binary
number with the digits representing, from left to right, AFP and
SMB/CIFS.
1=inherit, 0=don’t inherit.
creationmask The SMB/CIFS creation mask. Default=
0644.
directorymask The SMB/CIFS folder mask. Default=
0755.
oplockflag Specifies whether opportunistic locking is allowed for an SMB/CIFS
share point. 1=enable oplocks, 0=disable oplocks. For more
information about oplocks, see the file services administration
guide.
strictlockingflag Specifies whether strict locking is used on an SMB/CIFS share point.
1=enable strict locking, 0=disable. For more information about
strict locking, see the file services administration guide.
Parameter Description
Parameter Description
sharepointname The current name of the share point.
Other parameters See the parameter descriptions under “Creating a Share Point” on
page 134.