← man/data_processing
sharing — man sharing — 80×24
ugur@toprak:~/man/data_processing$man sharing
Bölüm 1 Veri İşleme

sharing

create share points for 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 Add a new share point for the directory specified by .

-e Edit the share point record specified by .

-r Delete the share point record specified by .

  • -l: List all existing share point records.

The following options modify share point record attributes:

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

-s Use this option to enable and disable sharing via smb. By default a share point is enabled for smb protocol. To enable and disable services, use the following flags as required: 001 (enable sharing for smb). Specify 000 to turn off sharing of a share point altogether.

-g Use this option to enable and disable guest access for smb. By default guest access is enabled for smb. To enable and disable guest access services, use the following flags as required: 001 (enable guest for smb). Specify 000 to turn off guest access for a share point altogether.

-n Specify a 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 by the when the record is created.

-R <0/1> Make share read only for smb. Specify 1 to enable read only. Specify 0 to disable read only.

-E <0/1> Make share encrypted for smb v3 and later. Specify 1 to enable encryption. Specify 0 to disable encryption.

-f Only used when listing share points and only json format is supported.

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 -S SP1 -g 001

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

Files

/usr/sbin/sharing location of tool

macOS Thu February 17 2017 macOS