LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   giving users permission to mount a CD (https://www.linuxquestions.org/questions/slackware-14/giving-users-permission-to-mount-a-cd-378921/)

ricardo_ok 11-01-2005 08:29 AM

giving users permission to mount a CD
 
I'm having problems giving my users the ability to mount /dev/cdrom to /mnt/cdrom. when I try to mount a cd as a user other than root I egt an error message that says only root can mount /dev/cdrom to /mnt/cdrom.

herbc 11-01-2005 08:37 AM

My /dev/cdrom line in /etc/fstab looks like this

/dev/cdrom /mnt/cdrom iso9660 noauto,unhide,user,exec,ro 0 0

Users mount and umount just fine. Do you have 'user' among your mount options?

jjge 11-01-2005 08:40 AM

man mount:

(iii) Normally, only the superuser can mount file systems. How-
ever, when fstab contains the user option on a line, anybody can
mount the corresponding system.

Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM
using the command
mount /dev/cdrom
or
mount /cd
For more details, see fstab(5)

ricardo_ok 11-01-2005 08:42 AM

I do now. that was oe things I han't thought to check. I just finished installing a couple days ago and it has been probably two years since I have had a working computer that had Slack on it(much less any other linux), and I had forgotten the options in the fstab file from my unix days back in the army. Well, thanks so very much!!

dennisk 11-03-2005 12:58 PM

To add a clarification to the use of user in the fstab is this quote from the mount man page.

Quote:

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


All times are GMT -5. The time now is 09:12 PM.