The nfsshare command in windows
You can use the nfsshare command to control the shares on the Network File System (NFS).
Nfsshare command syntax
nfsshare = [-o
Describe the nfsshare command
If there are no arguments, the nfsshare command utility lists all the shares in the Network File System (NFS) exported by Server for NFS. With ShareName as the only argument, nfsshare will list the properties of the NFS shares defined by ShareName . When ShareName and Drive: Path are provided, nfsshare will export the directory identified by Drive : Path under the name ShareName . When the option / delete is used, the specified directory is no longer available for NFS clients.
Options of nfsshare
The nfsshare command accepts the following options and parameters:
Parameters
Define
no}
-o rw [= [:] .]
Provides read-write access to the directory shared by the Host or client group specified by the Host.Separate the Host name and the group name with a colon (:).If the Host is not specified, all servers and customer groups (except for Hosts specified with ro option) have read-write access. If no ro or rw options are set, all clients have read-write access to the shared directory.
-o ro [= [:] .]
Provide read-only access to the directory shared by the Host or client group specified by the Host host.Separate the Host name and the group name with a colon (:).If the Host is not specified, all clients (except Hosts specified with option rw ) have read-only access. If the ro option is set for one or more clients, but the rw option is not set, only clients specified with ro options have access to the shared folder.
-o encoding = {big5
euc-jp
-o anongid =
Specifying an anonymous (unmapped) user will access the shared folder using gid as an identifier for their group (GID).The default value is -2.An anonymous GID will be used when reporting the owner of a user-unmapped (unmapped) file, even if anonymous access is disabled.
-o anonuid =
Specifying an anonymous (unmapped) user will access the shared folder by using uid as an identifier for their group (UID).The default value is -2.An anonymous UID will be used when reporting the owner of a user-unmapped (unmapped) file, even if anonymous access is disabled.
-o root [= [:] .]
Provide root access to the directory shared by the Host or client group specified by the Host.Separate the Host name and the group with a colon (:).If the Host is not specified, all clients have root access.If the original option is not set, no client has root access to the shared folder.
/ delete
If ShareName or Drive: Path is specified, delete the specified section.If * is specified, delete all NFS shares.
Attention:
To see the full syntax for this Syntax, at the command prompt, type:
> nfsshare /?
See more:
- The net print command in Windows
- Netcfg command in Windows
- Nbtstat command in Windows
- Bitsadmin create command in Windows
- The command nfsadmin in Windows
You should read it
- Del command in Windows
- Set command in Windows
- Mapadmin command in Windows
- Cmd command in Windows
- Command at in Windows
- Sub-commands in nslookup Windows command (Part 2)
- Sub-commands in the nslookup Windows command (Part 1)
- Fc command in Windows
- Sub-commands in nslookup Windows command (Part 3)
- The echo command in Windows
- Bitsadmin getdisplayname and bitsadmin geterror command in Windows
- The command reg add in Windows