Interoperability with UNIX
When configuring Client for NFS on Windows 2000 Professional, you only need to know the name of the mapping server that you use for authenticating and mapping users.
You can use Nfsadmin.exe, a command-line utility, for configuration and administration of Client for NFS. Nfsadmin uses the following syntax:
nfsadminclient computer-name option=value
where client indicates that you want to configure the NFS Client and computer-name is the name of the computer which is running the NFS Client.
Table 25.8 lists the command-line options that you can use with Nfsadmin to configure Client for NFS.
Table 25.8 Nfsadmin Command-Line Options
Option |
Value |
---|---|
mapsvr |
Computer name of the mapping server. |
preferTCP |
YES or NO, to indicate whether to use TCP. |
mtype |
HARD or SOFT, to indicate the type of mount. |
retry |
Number of retries for a soft mount. The default value is 5. |
timeout |
Time-out, in seconds, for an RPC call. |
perf |
MANUAL or DEFAULT, to indicate the method of determining performance parameters. |
rsize |
Size of the read buffer, in kilobytes. |
wsize |
Size of the write buffer, in kilobytes. |
fileaccess |
UNIX file permissions for reading, writing, and executing. For more information about UNIX file permissions, see Services for UNIX Help. |
To access Client for NFS
Click the Start button, point to Programs, and then click Windows Services for UNIX .
Click Services for UNIX Administration .
Double-click Client for NFS .
You can configure Client for NFS from this screen.
After you configure Client for NFS, you can mount files directly from UNIX hosts in Windows 2000 Professional by using either Windows Explorer or the command prompt.
To access NFS Files and Directories with Windows Explorer
In Windows Explorer, double-click My Network Places.
Double-click Entire Network.
Double-click NFS Network.
Double-click the appropriate NFS LAN, for example, Default LAN.
A list of available NFS servers appears.Double-click the appropriate NFS server.
A list of exported NFS shares appears.Select the file and/or folders you want to open.
Note
When you attempt to access NFS files and directories from Windows 2000 Professional and do not see any NFS volumes available, it is likely that the NFS directories and files have not been configured to be exported on your UNIX host. Refer to your UNIX documentation for more information about exporting NFS directories and files.
Note
If your user name exists in the authentication domain (PCNFSD/NIS), you are able to access the NFS resources with proper credentials. If your user name does not exist in the NIS/PCNFSD domain, you must access the resources as an anonymous user. However, you can change logon credentials by selecting Connect using a different user name . You can then provide the NIS/PCNFSD credentials you want to use to access Server for NFS.
To access NFS Files and Directories from the Command Prompt
- At the command prompt, type the following command:
mount*[switches] [network path] [drive | *]*
where switches is one or more of the switches listed in Table 25.9, network path is the network path to the NFS volume you want to mount, and drive is the drive letter to assign to the mounted volume (asterisk indicates the next available letter).
Table 25.9 Mount Parameters and Descriptions
Switches |
Description |
---|---|
-u: [ user name ] [ password | * ] |
User name and password are the user name and password to use for mounting the NFS volume. If you use an asterisk for password , you are prompted for the password. |
-o rsize=n |
Size of the read buffer, in kilobytes. |
-o wsize=n |
Size of the write buffer, in kilobytes. |
-o timeout=n |
Time-out for NFS connections, in tenths of a second. |
-o retry=n |
Number of times to attempt a soft mount. Default value is 5. |
-o mtype= [ soft | hard ] |
Specify soft or hard mount. |
-o anon |
Mount as anonymous user. |
-o nolock |
Disable locking. This option improves performance if you only need to read files. |
-o EUC |
Enable extended UNIX code set (EUC). |