LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Only root can use my cd-rom drive. (https://www.linuxquestions.org/questions/linux-hardware-18/only-root-can-use-my-cd-rom-drive-135212/)

njbrain 01-15-2004 05:34 PM

Only root can use my cd-rom drive.
 
When I try to mount my cdrom as "user" it tells me that only root can mount /dev/cdrom. I am running Slackware 9.1, and loving it.
Thanks, njbrain@softhome.net

leonscape 01-15-2004 05:46 PM

You need to alter the fstab to allow users.

something like this:

/dev/cdrom /mnt/cdrom auto ro,user,noauto,exec 0 0

njbrain 01-15-2004 06:17 PM

Cool! it works! But, it still won't play music cd's

leonscape 01-15-2004 06:22 PM

Why? You don't mount CD's you can just play them through a CD player. You may have bad permissions in /dev thats preventing the use of CD's.

type
ls -l /dev/cdrom

and check that the user is a member of the same group ( you might have to follow the links to find the actual group of the device. )

njbrain 01-15-2004 06:30 PM

This was the outcome of that command,
lrwxrwxrwx 1 root root 8 Jan 15 09:47 /dev/cdrom -> /dev/hdc
I know that you don't mount music cd to play them, I found that out the hard way! But when I start kde, kscd pops up in my face and says that I dont have permission to access the cdrom drive, but data cd's work just fine.

leonscape 01-15-2004 06:37 PM

check the permissions on:
ls -l /dev/hdc

it will probably come up with something like
brw-rw---- 1 root cdrecording 22, 64 Mar 14 2002 /dev/hdc

so you need to add your user to cdrecording or whatever the group actually is, the command:

adduser youruser thegroup

Will do this for you.

njbrain 01-15-2004 07:50 PM

Alright, I did what you said, and I don't get an error message anymore, but kscd won't run!

leonscape 01-15-2004 08:05 PM

Check the control center under sound & multmedia, Audio CD's add check everthings correct. Especially the autodetect device, It might be worth setting this yourself.


All times are GMT -5. The time now is 05:20 PM.