Creating files on an NFSv4 share results in incorrect ownership when UID/GID's do not match on Red Hat Enterprise Linux
Issue
- Changing ownership of a file from the NFS client functions as expected and the proper user and group is visible via an
ls -lorstatissued from the client. - Creating files as a user on the NFS client results in the files' ownership being modified to the
nobodyuser when the file ownership is inspected from the NFS client and as the numeric uid/gid when inspected from the NFS server:
NFS server:
# ls -l
-rw-r--r--. 1 1003 wheel 0 May 16 15:20 testfile
NFS client:
# ls -l
-rw-r--r--. 1 nfsnobody wheel 0 May 16 15:20 testfile
Environment
- Red Hat Enterprise Linux 5 or above
- Client mounting NFSv4 share
- uid/gid's differ between NFS server and NFS client
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
