NFS UID problem


Recommended Posts

I'd like to be able to mount my home directory on my server (Fedora 3) via NFS onto my client (Gentoo) as /mnt/nfs-retro.

I have my main user name setup as retro on both machines, however the UID and GID numbers for this user differ between the machines.

On Fedora my UID and GID are both 500, however on my Gentoo machine they are 1000 and 100 respectively.

I've been told to use the anon UID and GID settings but I can't make these work either. :(

Here is the contents or /etc/exports on the server (Fedora):

/                        192.168.1.0/24(ro,async)
/mnt/fat-media           192.168.1.0/24(rw,async)
/home/retro              192.168.1.0/24(rw,async,all_squash,anonuid=500,anongid=500)

Here is the relevant line from /etc/fstab on the client (Gentoo):

192.168.1.102:/home/retro	/mnt/nfs-retro	nfs  rw  	0 0

However, this still does not allow access to the share from the laptop as retro.

This is what I get:

retro@d600 ~ $ cd /mnt/nfs-retro/
-bash: cd: /mnt/nfs-retro/: Permission denied

Interestingly, as root on the client, I am granted access.

d600 mnt # cd /mnt/nfs-retro/
d600 nfs-retro # ls
Work

Any ideas anyone?

PS I tried changing my UID and GID on the client by altering /etc/passwd and using chown retro /home/retro -R but despite all the files being set, Gnome will not start. :/ I get to nautilus but there are lots of dialogs complaining about various errors and I get no panels etc.

Edited by hornett
Link to comment
https://www.neowin.net/forum/topic/275260-nfs-uid-problem/
Share on other sites

  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.