A tale of two user ids: Why does NFS not recognize a new user id?
- by user76177
I have two servers running RHEL6. The main server, which I will refer to as server, is a database server. The application server, which I will refer to as client, mounts a directory from server via NFS.
There is a user, appuser, on both client and server. However, appuser's id on client is 502. appuser's id on server is 506.
Both users need read and write capability on the NFS share. To facilitate this, I made the share owned by appuser on server.
Of course, client does not recognize that ownership, since appuser has a different id on client. So I did the following:
Changed id of user in /etc/passwd on client to be 506
**Changed ownership of appuser's $HOME on client to be appuser again so that I could log in.
Now, when I go to look at the NFS share from the client side, I see that it is owned by 502. 502 is the OLD id for appuser on client. I can't change ownership of the NFS share from client, since that is a volume that physically resides on server.
I need to make sure that the NFS share shows ownership of appuser from both server and client.
What step have I missed since changing the appuser id on client?
NOTE: I have not rebooted client or done anything else yet.