Click to See Complete Forum and Search --> : Mounting for all users
Sir Lancelot
11-15-2006, 04:53 AM
Using Elive Debian
I've tried several fstab edit options to achieve this, the latest being :-
/dev/fd0 /mnt/floppy vfat user,nosuid 0 0
but still I'm told only root can ' do that ! '
Any *helpful* suggestions please ?
deathadder
11-15-2006, 10:26 AM
Try users instead of user.
From man mount
'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'
If that doesn't work you might want to let us know what option's you've tried.
I found this in a thread here: http://justlinux.com/forum/showthread.php?t=146009&highlight=users+mount+floppy
The actual search: http://justlinux.com/forum/search.php?searchid=160923
HTH
ph34r
11-15-2006, 11:40 AM
change your options to user,noauto
Sir Lancelot
11-15-2006, 11:44 AM
Thanks for the suggestion and links, though I'm not sure I understood the more detailed explanation. :-{ Presently I have tried this again :-
/dev/fd0 /mnt/floppy vfat noauto,users,ro 0 0
but still an ordinary user is refused ! I made sure it had been unmounted OK previously by root and it did not appear in the mtab file.
Icarus
11-15-2006, 12:45 PM
You need to have permissions on the device to mount it, his original fstab entry is good for the mount
check the group of the device and add the user to that group
My /dev/fd0 is a link to floppy/0 and that has group permissions of floppy
# ls -l /dev/floppy/0
brw-rw---- 1 root floppy 2, 0 Nov 12 08:24 /dev/floppy/0
So use whatever tool you know to add the user to that group (I'm simple and manually edit the /etc/group file and add the user in)
Sir Lancelot
11-15-2006, 02:45 PM
Ok I've checked that bit out. Incidentally users cannot mount either cdrom or floppy.
/etc/group
cdrom:x:24:User1,User2,User3
floppy:x:25:User1,User2,User3
ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 2006-11-15 15:30 /dev/cdrom -> hdc
ls -l /dev/fd0
brw-rw---- 1 root floppy 2, 0 2006-11-15 15:30 /dev/fd0
The users appear to have permission for those 2 groups ?
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.