You are not logged in.

#1 2008-03-17 05:30:39

schmmd
Member
From: Seattle
Registered: 2006-03-25
Posts: 55
Website

umount drives mounted with autofs

Is it possible to allow users to call "umount" on drives that were mounted with autofs?  I have the following rules:

cdrom -fstype=iso9660,ro,users,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,async,users,nodev,nosuid,umask=000 :/dev/fl
usb -fstype=auto,async,users,nodev,nosuid,umask=000 :/dev/sdb1

I am under the impression that if I mount with option "users", then users can umount the drives.  However, that option does not actually seem to be used.  Any ideas on how I can allow my users to umount these drives?

Offline

#2 2008-03-17 07:13:53

Pajaro
Member
Registered: 2004-04-21
Posts: 871

Re: umount drives mounted with autofs

i think it is called user, not users

Offline

#3 2008-03-17 18:17:23

schmmd
Member
From: Seattle
Registered: 2006-03-25
Posts: 55
Website

Re: umount drives mounted with autofs

Nope.  From `man mount':

users:  Allow  every user to mount and unmount the file system.  This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line users,exec,dev,suid).

...

Only the user that mounted a filesystem can unmount it again.  If any user should be able to unmount, then use users instead of user in the fstab line.  The owner option is similar to the user option, with the restriction that the user must be the owner of the  special  file. This may be useful e.g. for /dev/fd if a login script makes the console user owner of this device.  The group option is similar, with the restriction that the user must be member of the group of the special file.

Offline

Board footer

Powered by FluxBB