nfsshare

NAME

nfsshare - Windows command-line utility to control network file system (NFS) shares

SYNOPSIS

nfsshare [sharename]
nfsshare [-o option=value...] sharename=drive:path
nfsshare /delete {sharename | drive:path | * }

DESCRIPTION

Without arguments, the nfsshare Windows command-line utility lists all network file system (NFS) shares exported by Server for NFS. With sharename as the only argument, nfsshare lists the properties of the NFS share identified by sharename. When sharename and drive:path are provided, nfsshare exports the folder identified by drive:path as sharename. When the /delete option is used, the specified folder is no longer made available to NFS clients.

OPTIONS

The nfsshare command accepts the following options and arguments:

-o
Sets option to value. The option argument can be one or more 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|shift-jis}
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.
/delete
If sharename or drive:path is specified, deletes the specified share. If * is specified, deletes all NFS shares.

NOTE

To view the complete syntax for this command, at a command prompt, type:

nfsshare /?

SEE ALSO

Share a directory

Stop sharing a directory