adding permisssions to cdrom so it can be mounted by a user
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was having that problem after I upgraded to the vanilla 2.6.9 kernel, but finally with some help of some our other users here, got it straightened out. Here are my fstab entries:
/dev/hdb /mnt/cdrom auto noauto,user,ro 0 0
/dev/hdd /mnt/cdrom2 auto noauto,user,ro 0 0
This way, they don't try to mount at bootup, and they can be mounted by normal users as well as root. The only caveat is only the user who mounted the volume (or root!) can unmount it, but that's the way it should be.
Originally posted by Lenard Spencer I was having that problem after I upgraded to the vanilla 2.6.9 kernel, but finally with some help of some our other users here, got it straightened out. Here are my fstab entries:
/dev/hdb /mnt/cdrom auto noauto,user,ro 0 0
/dev/hdd /mnt/cdrom2 auto noauto,user,ro 0 0
This way, they don't try to mount at bootup, and they can be mounted by normal users as well as root. The only caveat is only the user who mounted the volume (or root!) can unmount it, but that's the way it should be.
Hope this helps.
I have followed the fstab entries given by you, but I type mount as normal user, it prompts me:- "mount: only root can do that" error message. How can I solve this to let regular user to mount ,umount and eject cd ? And do I let it auto run whenever my cd insertion?
Originally posted by lewkh I have followed the fstab entries given by you, but I type mount as normal user, it prompts me:- "mount: only root can do that" error message. How can I solve this to let regular user to mount ,umount and eject cd ? And do I let it auto run whenever my cd insertion?
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165
Rep:
Reboot? Slackware only needs to reboot after a kernel change
or something really bad happening.
By the way, fstab is picky. There needs to be a "new line" character at the end of the file. Press enter at the end of the last entry, then save.
And instead of "auto" I use iso9660 as the file system.
It does not work and show the same error message as before. by the way I m using debian linux, does it affect?
Why regular user seems like lacking of privileges to perform mount, umount and eject. error message shows as below:
command: mount /dev/hdc /cdrom
error: mount: only root can do thateject
command: eject
error: eject: unable to open `/dev/hdc'
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165
Rep:
Well, maybe post in the Debian Forum?
Do you have a /mnt/cdrom directory? Or a /cdrom directory? You need to make one or the other. Then write your fstab to read
/dev/hdc /mnt/cdrom iso9660 noauto users 0 0
Also, make sure /dev/hdc is the correct drive.
You can change permission of /dev/hdc and set it to 666. It must be solution for you. Also you can try to add users to 'cdrom' group. So they can mount cdrom device. This is another solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.