Re: NFS mounted files owned by nobody

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Sep 20, 2013 at 10:46 AM, Larry Martell <larry.martell@xxxxxxxxx> wrote:
> I have 2 centos boxes and I want to NFS mount a dir from one to the
> other. When I do that the files on the client all are owned by
> nobody.nobody. I verified that the user and group of the files on the
> server exist on both hosts and have the same uid and gid. I googled
> and found this:
>
> http://whacked.net/2006/07/26/nfsv4nfs-mapid-nobody-domain/
>
> domainname on both machines returns (none). I edited /etc/resolve.conf
> on both and put 'domain foobar' as the first line in both. But then
> when I did a 'service network restart' the files were re-written and
> my changes were gone.
>

Edit /etc/idmapd.conf and set
Domain =
to the same thing on both, and do a 'service rpcidmapd reload'.  And
note that it still won't map names to different uids the way you
expect unless you have kerberos or some network authentication set up,
but if the uids are the same it should work and at least quit mapping
them to nobody.

-- 
  Les Mikesell
     lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux