[Gloucs] NFS 1001

Paul Broadhead gloucs at mailman.lug.org.uk
Thu Jul 10 20:06:01 2003


John McKeown <jmckeown@glos.ac.uk> wrote:

> Switch just worked, unexpectedly easy, so I now have a home network.
> 
> I'm having a little problem with NFS.... Set up /etc/exports for cdrom (ro)
> and that works fine. When I tried to export /home/user (ro) all goes well
> 'mount -t nfs tosh:/home/user /mnt/tosh' works, but 'Permission denied'
> when I try to look. I can see from /mnt that /mnt/tosh has a UID 1001
> whereas other /mnt dirs are root. I've tried "no_all_squash" option in 
> exports and restarted NFS server but still the mysterious UID 1001 
> appears on other machine. :o(  Help - any suggestions?

Not sure what the problem is, sorry.  However, I've setup NFS on my
local network but I had to make sure all the user accounts on the
multiple machines had the same user id and group ids otherwise you get
permission problems.   OK, I should be using NIS or similar but I wanted
to maintain some Independence for the various machines.

Talking of Independence, I also wanted to setup the mounts permanently
so I placed mount commands in /etc/fstab on the client machines.  This
worked fine but makes the booking of the client machine dependant on the
server.  So I switched to using automount.  This is a mount on demand
system so nothing happens at client boot time.  When you try to access
one of the mount points, then the auto mounter jumps in and does the
mount.  This way, if the server is not running, the client doesn't mind.

Auto mount is really easy to setup using /etc/auto.misc and
/etc/auto.master configuration files.  I'd recommend it over /etc/fstab.

Regards,
Paul