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.
  • Posts

    • Any Video Converter Free 9.2.3 by Razvan Serea Any Video Converter is an All-in-One video converting tool with an easy-to-use graphical interface, fast converting speed and excellent video quality. Any Video Converter supports all popular video formats and converts your videos to different video formats including MP4, MOV, MKV, M2TS, M4V, MPEG, AVI, WMV, ASF, OGV, WEBM, and more. It supports converting videos to customized percent (50%, 100%, 200%, and more) or resolution (480p, 720p, 1080p, 4K, and more); It supports encoding videos into x264, x265, h263p, xvid, mpeg, wmv, and more. Any Video Converter Free key features: Compatible with Windows 11/10/8.1/8/7 (32-64bit) User interface are available in 14 languages Convert all kinds of video formats including high-definition videos Extract audio from any videos and save as MP3/WMA for your mp3 player Take snapshot from any videos and build your own picture collection Support high-definition for both input and output Batch add videos from hard drive and batch convert Customize output parameters completely as you like Manage your output videos files by group or output profile Merge several video files into a single and long one Clip a video into segments Free Audio Filter: Adjust audio volume and add audio effects Crop frame size to remove black bars and retain what you want only Adjust the brightness, contrast, saturation Rotate or flip or add noise/sharpen effects Produce output video with subtitles of your own dialogue and much, much more... Any Video Converter Free 9.2.3 changelog: Fixed video download engine auto-update failures. Added custom speed control support in the speed change tool. Added support for downloading YouTube AI-generated subtitles. Added support for preserving original audio stream in the format convert tool (e.g., Dolby Atmos, DTS:X). Fixed other bugs and improved overall performance. Download: Any Video Converter Free 9.2.3 | 7.6 MB (Freeware) View: Any Video Converter Free Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Not sure what country you’re in but in many countries you can absolutely jail the sellers behind businesses… in fact I’d say in most countries you can do that
    • I guess we are done since you refuse to read my comment you replied to or my other comment in another thread you were also a part of here.
    • I hate Slack, but Teams is much worse - maybe they've already optimized it, but it was a huge slog the last time I've checked about half a year ago. I miss my Skype.
    • Just ended up switching to Ubuntu. Not sure why I waited.
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      +Edouard
      173
    3. 3
      PsYcHoKiLLa
      155
    4. 4
      ATLien_0
      91
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!