LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/fstab "user" option: not working?! (https://www.linuxquestions.org/questions/linux-newbie-8/etc-fstab-user-option-not-working-227577/)

Sinope 09-07-2004 02:18 AM

/etc/fstab "user" option: not working?!
 
What's up with this? (see below)

I get the same error message for /mnt/floppy, /mnt/muvo, /dev/muvo, /dev/dvd, /mnt/dvd, &c&c. I can mount any of the above without difficulty, as long as I am root.
mount -a runs without error.

So... what the hell? Am I spelling "user" wrong or something?

Code:

~$ mount /dev/fd0
mount: must be superuser to use mount
~$ cat /etc/fstab
/dev/hdb1        /                ext2        defaults        1  1
/dev/hda1        /boot            ext2        defaults        1  2
/dev/hda3        /ntfs-c          ntfs        ro,umask=0222  1  0
/dev/cdrom0      /mnt/cdrom0      iso9660    noauto,ro,user  0  0
/dev/cdrom1      /mnt/cdrom1      iso9660    noauto,ro,user  0  0
/dev/dvd        /mnt/dvd        iso9660    noauto,ro,user  0  0
/dev/fd0        /mnt/floppy      auto        user,noauto    0  0
/dev/sda1        /mnt/usbdisk    vfat    user,noauto,umask=0002    0  0
/dev/muvo        /mnt/muvo        vfat    user,noauto,umask=0002    0  0
//MATRIX/SharedDocs  /mnt/smb/matrix  smbfs      user,noauto    0  0
//LIB/SharedDocs    /mnt/smb/lib    smbfs      user,noauto    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
~$

Thanks for any help!

--S

heema 09-07-2004 03:20 AM

check out this site :

http://shilo.is-a-geek.com/slack/fstab12.html

Sinope 09-07-2004 08:33 AM

Of course I looked at shilo's site.... that is my bible. But I'm still having this problem....

As you can see, I have permissions aplenty..... (I am in group "mount", of course.)

Code:

~$ ls -l /dev/cdrom* /dev/dvd /dev/sda1 /dev/fd0 /dev/muvo /dev/hdd /dev/hdc
lrwxrwxrwx  1 root root      8 2004-09-01 17:13 /dev/cdrom0 -> /dev/hdc
lrwxrwxrwx  1 root root      8 2004-09-03 20:41 /dev/cdrom1 -> /dev/hdd
lrwxrwxrwx  1 root root      8 2004-09-03 20:42 /dev/dvd -> /dev/hdd
brw-rw-r--  1 root mount  2,  0 1996-05-14 17:38 /dev/fd0
brw-rw-rw-  1 root mount 22,  0 2002-06-09 15:27 /dev/hdc
brw-rw-rw-  1 root mount 22, 64 2002-06-09 15:27 /dev/hdd
lrwxrwxrwx  1 root root      9 2004-09-07 00:59 /dev/muvo -> /dev/sda1
brwxrwxr-x  1 root mount  8,  1 1995-04-29 06:33 /dev/sda1
~$
~$


gunter 09-07-2004 10:31 AM

Try mount /mnt/floppy instead of mount /dev/fd0

FYI.
user will only let the user that mounted the fs unmount it.

users will let any user unmount a fs regardless of who mounted it.

Try changing that option to see what happens.

Sinope 09-07-2004 11:41 AM

This I know..... I can't MOUNT it to begin with, though! JIC I tried changing it:

Code:

~$ mount /mnt/floppy
mount: must be superuser to use mount
~$ grep 'fd0' /etc/fstab
/dev/fd0        /mnt/floppy      auto        user,noauto    0  0
~$ ls -l /etc/fstab
-rw-r--r--  1 root root 906 2004-09-07 03:13 /etc/fstab
~$ su -c 'vi /etc/fstab'
Password:
reading /etc/fstab

wrote /etc/fstab, 13 lines, 907 chars
~$ grep 'fd0' /etc/fstab
/dev/fd0        /mnt/floppy      auto        users,noauto    0  0
~$ mount /mnt/floppy
mount: must be superuser to use mount
~$ ls -l /dev/fd0 /mnt/floppy -d
brw-rw-r--  1 root mount 2, 0 1996-05-14 17:38 /dev/fd0
drwxr-xr-x  2 root root  4096 2002-03-16 02:34 /mnt/floppy/
~$

As far as I can tell, everything is in order.... what could the problem be ?!?!?

Getting frustrated.....



--S


EDIT: I almost forgot.... In case you were wondering...
Code:

~$ groups
users root adm www mount

:P

cruzfernandez 09-12-2004 06:04 PM

it should be auto,user

egag 09-15-2004 07:21 AM

you have the same distro as i have, and i did:

edit the file /etc/sudoers using #visudo ( see " man visudo " ; if you don't know how to use vi, type " vimtutor " ; get's you going in 5-10 min's ),
i added the line : egag ALL=(ALL) NOPASSWD:ALL
and save it.

now i can mount by :
$sudo mount /mnt/cdrom
( right now, "egag " is able to use any command, you can restrict this to a few specefic commands....see examples in /etc/sudoers )

egag


All times are GMT -5. The time now is 06:20 AM.