08-23-2012 01:11 AM
I am getting the following error when I list the directory of an NFS mount point:
# ll /sapmnt/PRB
I am sharing the FS from server1 using serviceguard hanfs. Following is the entry in the script:
nfs/hanfs_export/XFS "-o ro /sapmnt/PRB"
OS is 11.31 on both cluster nodes. Any idea why I am getting this error?
Solved! Go to Solution.
08-23-2012 08:19 AM
08-23-2012 10:36 AM
You're attempting to list a NFS directory as root.
Most NFS servers will map the "root" user of the NFS client host as equivalent to the "nobody" user.
Usually the right way to deal with this is to make sure your username <-> UID and groupname <-> GID mappings are consistent between the client and the server, assign some meaningful group permissions & memberships, and stop trying to work on NFS filesystems as root.
(In HP-UX, if a user has rwx access to a directory, has CHOWN privilege assigned to him/her in /etc/privgrp, and there is no sticky bit on the directory, then there is not much practical difference between root and that user regarding any files in that directory.)
The lazy/special-case way would be to change the share options at the NFS server to allow root access from that particular client to that particular NFS share. See "man share_nfs" for ideas.
08-27-2012 12:25 AM
Thanks for your replies.
For the resolution I had to update the sharing options from the NFS server as below:
Now I am able to write to the NFS shares from all servers.