sharing(1)

NAME
sharing - create share points for afp, ftp and smb services.

SYNOPSIS
sharing [-a <path> [options]] [-e <share point name> [options]] [-r <share point name>] [-l]

DESCRIPTION

A list of flags and their descriptions:

-a <path>
    Add a new share point for the directory specified by <path>.

-e <share point name>
    Edit the share point record specified by <share point name>.

-r <share point name>
    Delete the share point record specified by <share point name>.

-l  List all existing share point records.

The following options modify share point record attributes:

-A <afp name>
    Use customized name <afp name> when using share point with afp.

-F <ftp name>
    Use customized name <ftp name> when using share point with ftp.

-S <smb name>
    Use customized name <smb name> when using share points with smb.

-s <flags>
    Use this option to enable and disable sharing via afp, ftp, and smb. By default a share point is enabled for afp, ftp, and smb protocols. To enable and disable particular services, combine (binary AND) the following flags as required: 100 (enable sharing for afp), 010 (enable sharing for ftp), and 001 (enable sharing for smb). Specify 000 to turn off sharing of a share point altogether.

-g <guest flag>
    Use this option to enable and disable guest access for afp, ftp, and smb. By default guest access is enabled for afp, ftp, and smb. To enable and disable guest access to particular services, combine (binary AND) the following flags as required: 100 (enable guest for afp), 010 (enable guest for ftp), and 001 (enable guest for smb). Specify 000 to turn off guest access for a share point altogether.

-i <inherit privileges flag>
    Use this option to enable and disable the "inherit privileges" attribute for afp. By default "inherit privileges" is enabled for afp. To enable "inherit privileges", combine (binary AND) the following flags as required: 10 ("inherit privileges" for afp). Specify 00 to turn off "inherit privileges" for a share point altogether.

-n <customized record name>
    Specify a <customized record name> to be used as the share point record name. By default the record name is the name of the directory pointed to by the share point record. This directory is specified bt the <path> when the record is created.

EXAMPLES

    /usr/sbin/sharing -a /SomePath/ShareThisDirectory

This example shows how to create a share point for the directory "/SomePath/ShareThisDirectory":

    /usr/sbin/sharing -e ShareThisDirectory -A SP1 -g 101

This example shows how to edit the share point record created above, adding a customized name "SP1" for afp servies, and enabling guest access only for afp and smb.

FILES
/usr/sbin/sharing
    location of tool