A tale of two user ids: Why does NFS not recognize a new user id?
Posted
by
user76177
on Server Fault
See other posts from Server Fault
or by user76177
Published on 2012-10-10T15:07:58Z
Indexed on
2012/10/10
15:39 UTC
Read the original article
Hit count: 268
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 onclient
to beappuser
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.
© Server Fault or respective owner