66
Creating a Share Point
To create a share point:
$ sharing
Parameter | Description |
path | The full path to the directory you want to share. |
|
|
customname | The name of the share point. If you don’t specify this custom name, |
| it’s set to the name of the directory, the last name in path. |
|
|
afpname | The share point name shown to and used by AFP clients. This name |
| is separate from the share point name. |
|
|
ftpname | The share point name shown to and used by FTP clients. |
|
|
smbname | The share point name shown to and used by SMB clients. |
|
|
shareflags | A |
| share the directory. The digits represent, from left to right, AFP, FTP, |
| and SMB. 1=shared, 0=not shared. |
|
|
guestflags | A group of three flags indicating which protocols allow guest |
| access. The flags are written as a |
| the digits representing, from left to right, AFP, FTP, and SMB. |
| 1=guests allowed, 0=guests not allowed. |
|
|
inheritflags | A group of two 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 |
| 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 directory mask. Default=0755. |
|
|
oplockflag | Specifies whether opportunistic locking is allowed for an SMB |
| share point. 1=enable oplocks, 0=disable oplocks. For more |
| information on oplocks, see the file services administration guide. |
|
|
strictlockingflag | Specifies whether strict locking is used on an SMB share point. |
| 1=enable strict locking, 0=disable. For more information on strict |
| locking, see the file services administration guide. |
|
|
Examples
$ sharing
Creates a share point named Art, shared using AFP, FTP, and SMB, and using the name Art for all three types of clients.
$ sharing
001
Chapter 8 Working With File Services