nfssharenfsshare

控制网络文件系统 (NFS) 共享。Controls Network File System (NFS) shares. 使用没有参数的情况下,此命令将显示 NFS 服务器导出的所有网络文件系统 (NFS) 共享。Used without parameters, this command displays all Network File System (NFS) shares exported by Server for NFS.

语法Syntax

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

参数Parameters

参数Parameter 说明Description
-o anon ={yes|no}-o anon={yes|no} 指定匿名 (是否) 用户可以访问共享目录。Specifies whether anonymous (unmapped) users can access the share directory.
-o rw =[<host>[:<host>]...]-o rw=[<host>[:<host>]...] 提供由 主机指定的主机或客户端组对共享目录的读写访问权限。Provides read-write access to the shared directory by the hosts or client groups specified by host. 必须用冒号 () 分隔主机名和组名。You must separate host and group names with a colon (:). 如果未指定 主机 ,则除使用 ro 选项指定的主机和客户端组外,所有主机和客户端 (组) 获取读写访问权限。If host isn't specified, all hosts and client groups (except those specified with the ro option) get read-write access. 如果不设置 rorw 选项,所有客户端都具有对共享目录的读写访问权限。If neither the ro nor the rw option is set, all clients have read-write access to the shared directory.
-o ro =[<host>[:<host>]...]-o ro=[<host>[:<host>]...] 提供由 主机指定的主机或客户端组对共享目录的只读访问。Provides read-only access to the shared directory by the hosts or client groups specified by host. 必须用冒号 () 分隔主机名和组名。You must separate host and group names with a colon (:). 如果未指定 主机 ,则除使用 rw 选项指定的客户端之外的所有客户 (端) 获取只读访问权限。If host isn't specified, all clients (except those specified with the rw option) get read-only access. 如果为一个或多个客户端设置了 ro 选项,但未设置 rw 选项,则只有使用 ro 选项指定的客户端才能访问共享目录。If the ro option is set for one or more clients, but the rw option isn't set, only the clients specified with the ro option have access to the shared directory.
-o 编码 ={euc-jp|euc-tw|euc-kr|shift-jis|Big5|Ksc5601|Gb2312-80|Ansi)-o encoding={euc-jp|euc-tw|euc-kr|shift-jis|Big5|Ksc5601|Gb2312-80|Ansi) 指定要在 NFS 共享上配置的语言编码。Specifies the language encoding to configure on an NFS share. 只能在共享上使用一种语言。You can use only one language on the share. 此值可以包含以下任何值:This value can include any of the following values:
  • euc-jp: 日语euc-jp: Japanese
  • euc-幼圆: 中文euc-tw: Chinese
  • euc-kr: 朝鲜语euc-kr: Korean
  • shift-jis 日语shift-jis: Japanese
  • Big5: 中文Big5: Chinese
  • Ksc5601: 朝鲜语Ksc5601: Korean
  • Gb2312-80: 简体中文Gb2312-80: Simplified Chinese
  • Ansi: ANSI 编码Ansi: ANSI-encoded
-o anongid =<gid>-o anongid=<gid> 指定匿名 (取消映射) 用户使用 gid 作为其组标识符 (gid) 来访问共享目录。Specifies that anonymous (unmapped) users access the share directory using gid as their group identifier (GID). 默认值为 -2The default is -2. 在报告未映射用户拥有的文件的所有者时,即使禁用匿名访问,也将使用匿名 GID。The anonymous GID is used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled.
-o anonuid =<uid>-o anonuid=<uid> 指定匿名 (取消映射) 用户使用 uid 作为其用户标识符 (uid) 来访问共享目录。Specifies that anonymous (unmapped) users access the share directory using uid as their user identifier (UID). 默认值为 -2The default is -2. 在报告未映射用户拥有的文件的所有者时,即使禁用匿名访问,也将使用匿名 UID。The anonymous UID is used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled.
-o root =[<host>[:<host>]...]-o root=[<host>[:<host>]...] 提供由 主机指定的主机或客户端组对共享目录的根访问权限。Provides root access to the shared directory by the hosts or client groups specified by host. 必须用冒号 () 分隔主机名和组名。You must separate host and group names with a colon (:). 如果未指定 主机 ,则所有客户端均获取根访问权限。If host isn't specified, all clients get root access. 如果未设置 选项,则没有客户端具有对共享目录的根访问权限。If the root option isn't set, no clients have root access to the shared directory.
/delete/delete 如果已指定共享 <drive>:<path> ,则此参数将删除指定的共享。If sharename or <drive>:<path> is specified, this parameter deletes the specified share. 如果指定了通配符 ( * ) ,则此参数将删除所有 NFS 共享。If a wildcard (*) is specified, this parameter deletes all NFS shares.
/?/? 在命令提示符下显示帮助。Displays help at the command prompt.

备注Remarks

  • 如果 共享名 是唯一的参数,此命令将列出由 共享名标识的 NFS 共享的属性。If sharename as the only parameter, this command lists the properties of the NFS share identified by sharename.

  • 如果使用了 共享名<drive>:<path> ,则此命令会将标识的文件夹导出 <drive>:<path>共享名If sharename and <drive>:<path> are used, this command exports the folder identified by <drive>:<path> as sharename. 如果使用 /delete 选项,则指定的文件夹停止可用于 NFS 客户端。If you use the /delete option, the specified folder stops being available to NFS clients.

其他参考Additional References