NFS Services Administrator's Guide (5900-1632, August 2011)
To access the shared directory across a firewall using the WebNFS feature, configure the firewall
to allow connections to the port number used by the nfsd daemon. By default the nfsd daemon
uses port 2049.
Configure the firewall based on the port number configured.
Configuring an NFS Server for use by a PC NFS client
PC NFS is a protocol designed to perform the following functions:
• Allow PC users who do not have UNIX style credentials to authenticate to a UNIX account
• Perform print spooling from a PC on to a UNIX server
Once a PC client has successfully authenticated itself on the NFS server, the PC uses the MOUNT
and NFS protocols to mount the filesystem and to read and write to a file.
You may want to create the /etc/pcnfsd.conf file for the following reasons:
• If the PC NFS client software assigns user IDs smaller than 101 or greater than 60002, you
can set the uidrange in the /etc/pcnfsd.conf file to allow access to a different range
of user IDs, as in the following example:
uidrange 80-60005
• You want to provide PC users a different set of default print options. For example, add an
entry to the /etc/pcnfsd.conf file which defines raw as a default print option for PC users
submitting jobs to the printer lj3_2 as follows:
printer lj3_2 lj3_2 lp -dlj3_2 -oraw
The /etc/pcnfsd.conf file is read when the pcnfsd daemon starts. If you make any changes
to /etc/pcnfsd.conf file while pcnfsd is running, you must restart pcnfsd before the changes
take effect.
A PC must have NFS client software installed in order to use the system as a PC NFS server.
The PCNFS_SERVER variable, configured using the /etc/rc.config.d/nfsconf file controls
whether the pcnfsd daemon is started at system boot time. To configure the server to automatically
start pcnfsd during system boot, follow these steps:
1. In the /etc/rc.config.d/nfsconf file, use a text editor to set the PCNFS_SERVER
variable to 1, as follows:
PCNFS_SERVER=1
2. To forcibly start the pcnfsd daemon while the server is running, run the following command:
/sbin/init.d/nfs.server start
For more information on pcnfsd, see pcnfsd(1M).
Unsharing (Removing) a Shared Directory
NOTE: Before you unshare a directory, run the showmount -a command to verify whether
any clients are accessing the shared directory. If users are accessing the shared directories, they
must exit the directories before you unshare the directory.
A directory that is shared can be unshared. You can temporarily unshare a directory using the
unshare command. If you want to remove a directory from being automatically shared at server
restart or system reboot, remove it from the /etc/dfs/dfstab file.
Configuring and Administering an NFS Server 31