LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Non-root cdrom mount (https://www.linuxquestions.org/questions/slackware-14/non-root-cdrom-mount-290647/)

kleptophobiac 02-15-2005 04:32 PM

Non-root cdrom mount
 
I have the "user" option set in fstab on /dev/cdrom, I have 660 permissions to root.cdrom on /dev/hdc (/dev/cdrom points there), and I have my user in the cdrom group... yet I still can't mount /dev/cdrom as a non root user.

Anybody have any other suggestions?

__J 02-15-2005 04:35 PM

in your fstab change user to users but see man mount first for the description ( it's a little different than the user option, it basically lets all users mount the cdrom)

kleptophobiac 02-15-2005 04:51 PM

Just tried that, still no dice.

coffeedrinker 02-15-2005 04:54 PM

Try adding yourself to the "disk" group

kleptophobiac 02-15-2005 05:03 PM

Still no workie... :(

Thanks for the quick help though!

coffeedrinker 02-15-2005 05:40 PM

Let's go all out here :)

cat fstab
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0

ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 2005-02-15 07:28 cdrom -> hdc

ls-l /dev/hdc
brw-rw---- 1 root cdrom 22, 0 2005-02-15 07:28 hdc

ls -l /mnt/cdrom
dr-xr-xr-x 6 root root 2048 2004-05-01 13:37 cdrom

kleptophobiac 02-15-2005 05:46 PM

Check
Check
Check
Check

mount: only root can do that

Damn!

reddazz 02-15-2005 05:47 PM

Try using "sudo", I had to do that on Slack coz nothing I tried would work for me.

coffeedrinker 02-15-2005 05:55 PM

edited to delete a newbie reply :)

kleptophobiac 02-15-2005 05:59 PM

I need this to alllow a program to mount when necessary, it is unacceptable to have to type a password all the time.

I'm thinking I'll just set the suid bit on mount, this machine is on a local network where nothing will ever hurt it.... so whatever.


All times are GMT -5. The time now is 06:23 PM.