I have two servers running RHEL6. I have root access to both. 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 UID on client is 502. appuser's UID 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.
Running id appuser on each yields: uid=506(appuser).
Of course, client does not recognize that ownership, since appuser has a different id on client. So I did the following:
Changed UID 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 anything else.)