LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mount/umount (https://www.linuxquestions.org/questions/linux-general-1/mount-umount-148035/)

devit 02-19-2004 10:47 AM

mount/umount
 
This is my /etc/fstab file:

Code:

/dev/hda5        swap            swap        defaults        0  0
/dev/hda1        /                ext3        defaults        1  1
/dev/scd0        /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0

What do I have to modify so any user could mount/umount a device?

Thanks!

jkobrien 02-19-2004 10:56 AM

Add ",user" to the fourth column.

John

superbondbond 02-19-2004 11:04 AM

like this:

Code:

/dev/fd0        /mnt/floppy      auto        noauto,user      0  0

aaa 02-19-2004 11:10 AM

It may be ",users". Or both. 'users' is supposed to be for unmounting, 'user' for mounting.

michaelk 02-19-2004 12:37 PM

FYI:
user
Allow an ordinary user to mount the file system. The name of the mounting user is written to mtab so that he can unmount the file system again. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).

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).


All times are GMT -5. The time now is 09:54 AM.