Specifications

Chapter 9 Working with File Services 139
To create a share point that uses AFP, FTP, and SMB:
Enter the following command, replacing 100GB with the name of the volume
containing the share point and Archive with the share point name:
$ sudo 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 share point name so that it appears
as WinDocs for server management purposes, and Documents for SMB file service
users:
$ sudo sharing -a /Volumes/100GB/Windows\ Docs -n WinDocs -S Documents
-s 001 -o 1
This share point is shared using only SMB with oplocks enabled.
guestflags A group of 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.
1=guests allowed, 0=guests not allowed.
inheritflags A group of flags indicating whether new items in AFP or SMB 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.
1=inherit, 0=don’t inherit.
creationmask The SMB creation mask. Default=
0644.
directorymask The SMB folder mask. Default=
0755.
oplockflag A parameter that specifies whether opportunistic locking is allowed for an SMB
share point. 1=enable oplocks, 0=disable oplocks.
For more information about oplocks, see File Services Administration.
strictlockingflag A parameter that specifies whether strict locking is used on an SMB share point.
1=enable strict locking, 0=disable.
For more information about strict locking, see File Services Administration.
Parameter Description