A command-line utility that administers Server for NFS or Client for NFS on the local or remote computer running Microsoft Services for Network File System (NFS). Used without parameters, nfsadmin server displays the current Server for NFS configuration settings and nfsadmin client displays the current Client for NFS configuration settings.
Syntax
nfsadmin server [computername] [-u Username [-p Password]] -l
nfsadmin server [computername] [-u Username [-p Password]] -r {client | all}
nfsadmin server [computername] [-u Username [-p Password]] {start | stop}
nfsadmin server [computername] [-u Username [-p Password]] config option[...]
nfsadmin server [computername] [-u Username [-p Password]] creategroup <name>
nfsadmin server [computername] [-u Username [-p Password]] listgroups
nfsadmin server [computername] [-u Username [-p Password]] deletegroup <name>
nfsadmin server [computername] [-u Username [-p Password]] renamegroup <oldname> <newname>
nfsadmin server [computername] [-u Username [-p Password]] addmembers <hostname>[...]
nfsadmin server [computername] [-u Username [-p Password]] listmembers
nfsadmin server [computername] [-u Username [-p Password]] deletemembers <hostname><groupname>[...]
nfsadmin client [computername] [-u Username [-p Password]] {start | stop}
nfsadmin client [computername] [-u Username [-p Password]] config option[...]
General Parameters
| Parameter | Description |
|---|---|
| computername | Specifies the remote computer you want to administer. You can specify the computer using a Windows Internet Name Service (WINS) name or a Domain Name System (DNS) name, or by Internet Protocol (IP) address. |
| -u Username | Specifies the user name of the user whose credentials are to be used. It might be necessary to add the domain name to the user name in the form domain\username. |
| -p Password | Specifies the password of the user specified using the -u option. If you specify the -u option but omit the -p option, you are prompted for the user's password. |
Server for NFS-related parameters
| Parameter | Description |
|---|---|
| -l | Lists all locks held by clients. |
| -r `{client | all}` |
| start | Starts the Server for NFS service. |
| stop | Stops the Server for NFS service. |
| config | Specifies general settings for Server for NFS. You must supply at least one of the following options with the config command argument:<ul><li>mapsvr=<server> - Sets server as the User Name Mapping server for Server for NFS. Although this option continues to be supported for compatibility with previous versions, you should use the sfuadmin utility instead.</li><li>**auditlocation=`{eventlog |
creategroup <name> |
Creates a new client group, giving it the specified name. |
| listgroups | Displays the names of all client groups. |
deletegroup <name> |
Removes the client group specified by name. |
renamegroup <oldname> <newname> |
Changes the name of the client group specified by oldname to newname. |
addmembers <hostname>[...] |
Adds a host to the client group specified by name. |
listmembers <name> |
Lists the host computers in the client group specified by name. |
deletemembers <hostname><groupname>[...] |
Removes the client specified by host from the client group specified by group. |
Client for NFS-related parameters
| Parameter | Description |
|---|---|
| start | Starts the Client for NFS service. |
| stop | Stops the Client for NFS service. |
| config | Specifies general settings for Client for NFS. You must supply at least one of the following options with the config command argument:<ul><li>fileaccess=<mode> - Specifies the default permission mode for files created on Network File System (NFS) servers. The mode argument consists of a three digit number, from 0 to 7 (inclusive), which represent the default permissions granted the user, group, and others. The digits translate to UNIX-style permissions as follows: 0=none, 1=x (execute), 2=w (write only), 3=wx (write and execute), 4=r (read only), 5=rx (read and execute), 6=rw (read and write), and 7=rwx (read, write, and execute). For example, fileaccess=750 gives read, write, and execute permissions to the owner, read and execute permissions to the group, and no access permission to others.</li><li>mapsvr=<server> - Sets server as the User Name Mapping server for Client for NFS. Although this option continues to be supported for compatibility with previous versions, you should use the sfuadmin utility instead.</li><li>**mtype=`{hard |
Examples
To stop Server for NFS or Client for NFS, type:
nfsadmin server stop
nfsadmin client stop
To start Server for NFS or Client for NFS, type:
nfsadmin server start
nfsadmin client start
To set Server for NFS to not be case-sensitive, type:
nfsadmin server config casesensitive=no
To set Client for NFS to be case-sensitive, type:
nfsadmin client config casesensitive=yes
To display all the current Server for NFS or Client for NFS options, type:
nfsadmin server config
nfsadmin client config
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
