NFS Services Administrator's Guide

Troubleshooting NFS Services
Common Problems with NFS
Chapter 8 293
If You Receive an “Access Denied” Message
Issue the following command on the NFS client to check that the
NFS server is exporting the directory you want to mount:
/usr/sbin/showmount -e server_name
If the server is not exporting the directory, edit the /etc/exports file
on the server so that it allows your NFS client access to the directory.
Then, issue the following command to force the server to read its
/etc/exports file.
/usr/sbin/exportfs -a
If the directory is exported with the access option, make sure your
NFS client is included in the access list, either individually or as a
member of a netgroup.
If your NFS client is included in the access list as a member of a
netgroup, make sure it is a member of the netgroup in the server’s
/etc/netgroup file.
If you are using NIS to manage your netgroups, issue the following
command to determine whether your NIS server has up-to-date
information about the netgroup that includes your client:
/usr/bin/ypmatch netgroup_name netgroup
If your NIS server does not return the correct information, see
“Common Problems with NIS” on page 306.
If you are using NIS+ to manage your netgroups, issue the following
command to determine whether the NIS+ database has up-to-date
information about the netgroup that includes your client:
nismatch name=netgroup_name netgroup.org_dir
If your NIS+ server does not return the correct information, see
“Common Problems with NIS+” on page 315.
Issue the following commands on the NFS server to make sure your
NFS client is listed in its hosts database:
nslookup client_name
nslookup client_IP_address
If the server cannot resolve your client’s hostname, see “If You
Receive an “Unknown Host” or “Not In Hosts Database” Message” on
page 297.