From queszama at yahoo.in Sun Aug 23 05:45:16 2015 From: queszama at yahoo.in (Zama Ques) Date: Sun, 23 Aug 2015 05:45:16 +0000 (UTC) Subject: NFS change ownership issue . Always nobody on client Message-ID: <1967223198.6764669.1440308716008.JavaMail.yahoo@mail.yahoo.com> We are accessing NFS mounts across three hosts. The issue for us is that when we change the ownership of a directory on NFS mount on the server, the ownership changes are not taking place on the client. It is getting changed to nobody on the client. The issue can be seen for a particular user , for other users it is working fine. The user in question is the following user. $ id contentmanager uid=506(contentmanager) gid=500(admin) groups=500(admin) UID is same on both client and server machines. Also, if we change the ownership to contentmanager manually on the client, it is getting changed to nobody user. But if changed to some other user, it works fine. Please find /etc/exports for the particular directory on the server. /shareddata/share *(rw,no_root_squash,sync) On the client machine, it is mounted as followslnxq-004:/shareddata/share /data/share nfs vers=3,rw 0 0 Example on the Server:$ sudo chown contentmanager test $ ls -l -rw-rw-r-- 1 contentmanager admin 0 Aug 20 23:08 test $ ls -ln test -rw-rw-r-- 1 506 500 0 Aug 20 23:08 test ?Example on the Client:$ ls -l -rw-rw-r-- 1 nobody admin 0 Aug 20 23:08 test $ ls -ln test -rw-rw-r-- 1 99 500 0 Aug 20 23:08 test This is the issue where the ownership is not getting changed to contentmanager -------------- next part -------------- An HTML attachment was scrubbed... URL: From boomstk at gmail.com Sun Aug 23 12:05:12 2015 From: boomstk at gmail.com (Thomas Taylor) Date: Sun, 23 Aug 2015 12:05:12 +0000 Subject: NFS change ownership issue . Always nobody on client In-Reply-To: <1967223198.6764669.1440308716008.JavaMail.yahoo@mail.yahoo.com> References: <1967223198.6764669.1440308716008.JavaMail.yahoo@mail.yahoo.com> Message-ID: Is there an account on the client called contentmanager ? with a gid of 506? On Sun, Aug 23, 2015, 02:16 Zama Ques wrote: > > > > > > > > We are accessing NFS mounts across three hosts. The issue for us is that > when we change the ownership of a directory on NFS mount on the server, > the ownership changes are not taking place on the client. It is getting > changed to nobody on the client. The issue can be seen for a particular > user , for other users it is working fine. The user in question is the > following user. > > $ id contentmanager > uid=506(contentmanager) gid=500(admin) groups=500(admin) > > UID is same on both client and server machines. > Also, if we change the ownership to contentmanager manually on the > client, it is getting changed to nobody user. But if changed to some > other user, it works fine. > Please find /etc/exports for the particular directory on the server. > > /shareddata/share *(rw,no_root_squash,sync) > > On the client machine, it is mounted as follows > > lnxq-004:/shareddata/share /data/share nfs vers=3,rw 0 0 > > Example on the Server: > > $ sudo chown contentmanager test > $ ls -l > -rw-rw-r-- 1 contentmanager admin 0 Aug 20 23:08 test > > $ ls -ln test > -rw-rw-r-- 1 506 500 0 Aug 20 23:08 test > > > Example on the Client: > > $ ls -l > -rw-rw-r-- 1 nobody admin 0 Aug 20 23:08 test > > $ ls -ln test > -rw-rw-r-- 1 99 500 0 Aug 20 23:08 test > > This is the issue where the ownership is not getting changed to > contentmanager > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From queszama at yahoo.in Thu Aug 27 11:45:10 2015 From: queszama at yahoo.in (Zama Ques) Date: Thu, 27 Aug 2015 11:45:10 +0000 (UTC) Subject: NFS change ownership issue . Always nobody on client In-Reply-To: References: Message-ID: <523592.1408769.1440675910101.JavaMail.yahoo@mail.yahoo.com> This was resolved after running sudo nfsidmap -c? which actually clears the cache on all client hosts. ThanksZaman On Sunday, 23 August 2015 7:13 PM, Bill Ranck wrote: On Sun, Aug 23, 2015 at 1:45 AM, Zama Ques wrote: We are accessing NFS mounts across three hosts. The issue for us is that when we change the ownership of a directory on NFS mount on the server, the ownership changes are not taking place on the client. It is getting changed to nobody on the client. ?NFS has an option that does that.? I forget at the moment if it's an export option on the server or a mount option on the client, but there is a option that controls that.? -- Bill RanckBlacksburg, VA? -------------- next part -------------- An HTML attachment was scrubbed... URL: