having a normal user mount nfs filesystem

Peter Garrett peter.garrett at optusnet.com.au
Sun Feb 4 02:27:04 UTC 2007


On Sat, 03 Feb 2007 19:43:16 -0600
Linda Hanigan <haniganwork at earthlik.net> wrote:

> I have been mounting our nfs with
> mount 192.168.1.3:/usr/local/lib/letters /usr/local/lib/letters

To allow users to mount nfs try a line like something like this in /etc/fstab :

hostname:/home/foo  /mount-point/nfs-foo   nfs   noauto,users,rw,hard,intr 0 0

Substitute IP numbers of course, if needed. 

> It works great, but if someone accidently shuts down instead of logging
> off the machine they of course lose the filesystem.

I don't quite follow this :) Do you mean they can't remount it themselves after rebooting?
If so, a line like the one above for /etc/fstab should work for them , either mounting nfs shares
from the "Computer" place in Nautilus, or from the command line with something like

mount /media/your-mount-point 

> I would like to have away for a user to do this without a root password.

i think the above should work fine. Note that using "users" in /etc/fstab means 
"any user can unmount this " , whereas "user" (singular) means the user who 
mounted it can umount it.

> I vaguely remember setting up a way to restart lpr years ago without
> needing a root password with some special file in /etc I can not for the
> life of me remember the command. Anybody know what I am talking about?

Separate issue - I think your user needs to be in the lpadmin group to administer 
printers etc. - but anyone should be able to use "lpr" as far as I know...

Peter




More information about the ubuntu-users mailing list