On Wednesday 5 October 2005 01:25, Mike McMullin wrote:
I usually only boot my file server when I need access to the files on it. Lately I've been correcting the NFS imports on the various clients, and one thing occourred to me. Since NFS is mounted at boot time, and the server may well be started after one of the clients is up and running fully, I need an easy way to have the NFS mounts mount by the various users, and without giving them the root password for their systems.
I was thinking of a simple script as follows:
#/bin/bash mount -a -tnfs
and using sudo as mounting requires root privileges.
Is there a simpler way?
Mike
Put the mountable NFS-shares in their fstab with the option "user". In that case they can mount it under their normal account... Like I did with one of my shares..: centaur:/spare/disk120Gb/data /mnt/data nfs noauto,exec,user 0 0 Regards -- Peter M. Groen Open Systems Development Klipperwerf 12 2317 DZ Leiden T: +31-(0)-71-5216317 M: +31-(0)6-29563390 E: info@osdev.xs4all.nl