LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to grant users mount permission (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-grant-users-mount-permission-454455/)

dreakon 06-13-2006 03:03 PM

How to grant users mount permission
 
Im using Slackware 10.2. While logged in as root I have full access to my DVD drive and anything else. How can I give my normal user login permission to mount drives?

320mb 06-13-2006 04:03 PM

you'll need to edit /etc/fstab..........Example
Code:

/dev/hdb8        /home/music      ext2        noauto,owner,users   
/dev/hda5        /stuff          vfat        noauto,owner,users     
/dev/hdb7        /ebook          vfat        noauto,owner,users   
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,users,ro 
/dev/cdrom1      /mnt/cdrom1      iso9660    noauto,owner,users,ro

give users permissions like you see in red

jonwatson 06-13-2006 04:56 PM

Probably too much information, but...

If you use the word "users", then any user will be able to mount that file sytem and any user can unmount it. If you use the word "user" (no 's'), then any user can mount the file system, but only the user who mounted it can unmount it.

Sounds like you're just running a single-user system so it doesn't matter, but I think this is an interesting little tidbit.

dreakon 06-13-2006 07:59 PM

No, it does matter, I am running a single user system, but I really appreciate all the knowledge I can get. Very many thanks to the both of you.

nadroj 06-13-2006 08:07 PM

for more details check out 'man mount' it tells you all of the options available and describes what they do.


All times are GMT -5. The time now is 04:34 PM.