To share a directory

Using the Windows interface

  1. Open Windows Explorer.
  2. In the details pane, right-click the directory you want to share.
  3. Click Sharing.
  4. On the NFS Sharing tab, click Share this folder.
  5. To change the name of the shared folder, type a new name in Share name. The new name is what users will see when they connect to this shared folder. The actual name of the folder does not change.

Notes

Using a command line

Argument Description
sharename The name of the shared directory.
drive:path The path to the directory to be shared.
-o Specifies one or more options to be set. If supplied, must be set to at least one of the following:
anon={yes | no}
Specifies whether anonymous (unmapped) users can access the shared directory. The default is no.
anonuid=uid
Specifies that anonymous (unmapped) users will access the share directory using uid as their user identifier (UID). The default is -2. The anonymous UID will be used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled.
anongid=gid
Specifies that anonymous (unmapped) users will access the share directory using gid as their group identifier (GID). The default is -2. The anonymous GID will be used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled.
encoding={big5|euc-jp|euc-kr|euc-tw|gb2312-80|ksc5601|sjis}
Specifies the default encoding used for file and directory names and, if used, must be set to one of the following:
  • big5 (Chinese)
  • euc-jp (Japanese)
  • euc-kr (Korean)
  • euc-tw (Chinese)
  • gb2312-80 (Simplified Chinese)
  • ksc5601 (Korean)
  • shift-jis (Japanese)

If this is option is not set, the default encoding scheme is ANSI or, on systems configured for non-English locales, the default encoding scheme for the locale. The following are the default encoding schemes for the indicated locales:

  • Japanese: SHIFT-JIS
  • Korean: KS_C_5601-1987
  • Simplified Chinese: GB2312-80
  • Traditional Chinese: BIG5
ro[=host[:host]...]
Provides read-only access to the shared directory by the hosts or client groups specified by host. Separate host and group names with a colon (:). If host is not specified, all clients (except those specified with the rw option) have read-only access. If the ro option is set for one or more clients, but the rw option is not set, only the clients specified with the ro option have access to the shared directory.
rw[=host[:host]...]
Provides read-write access to the shared directory by the hosts or client groups specified by host. Separate host and group names with a colon (:). If host is not specified, all hosts and client groups (except those specified with the ro option) have read-write access. If neither the ro nor the rw option is set, all clients have read-write access to the shared directory.
root[=host[:host]...]
Provides root access to the shared directory by the hosts or client groups specified by host. Separate host and group names with a colon (:). If host is not specified, all clients have root access. If the root option is not set, no clients have root access to the shared directory.

Notes

Related Topics

*

To configure access for a client computer or group

*

To allow anonymous access to a shared directory

*

To add clients and groups to the shared directory permissions list

*

To set default encoding for a shared directory

*

nfsshare

*

Server for NFS overview