Why doesn't NFS recognize a new UID?
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/11
15:38 UTC
Read the original article
Hit count: 250
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 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 anything else.)
© Server Fault or respective owner