LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't play audio CD when I'm not root (https://www.linuxquestions.org/questions/linux-newbie-8/cant-play-audio-cd-when-im-not-root-453966/)

yukie 06-12-2006 06:23 AM

can't play audio CD when I'm not root
 
well the thread title pretty much says it all. All my cd players behave as if there was no cd in the drive whenever I'm not root. below is my fstab.

Code:

/dev/hda5        swap            swap        defaults        0  0
/dev/hda2        /                ext2        defaults        1  1
/dev/hda6        /usr            ext2        defaults        1  2
/dev/hda7        /opt            ext2        defaults        1  2
/dev/hda8        /home            ext2        defaults        1  2
/dev/hda1        /mnt/windows    ntfs        ro              1  0
/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0


Nylex 06-12-2006 06:25 AM

Is your user account in the cdrom and audio groups? Look in /etc/group to find out.

worzel68 06-12-2006 06:32 AM

yukie,

Quote:

/dev/cdrom /mnt/cdrom auto noauto,owner,ro
this line shows the option "owner", which means only the owner can mount that device.

You can change this to user, which will allow any user to mount the device.

Also check the permissions on /dev/cdrom - it is probably owned by root.

Check out the man page for mount.

Enjoy your audio experience.

yukie 06-12-2006 06:37 AM

Quote:

this line shows the option "owner", which means only the owner can mount that device.

You can change this to user, which will allow any user to mount the device.
ok, just did this, but it didn't seem to help.

Quote:

Also check the permissions on /dev/cdrom - it is probably owned by root.
yeah, it looks like it is owned by root. An ls -l /dev/cdrom gives:
Code:

lrwxrwxrwx  1 root root 8 2006-06-09 04:14 /dev/cdrom -> /dev/hdb
so, do i change ownership?

thanks.

EDIT:

by the way, /etc/group/ contains

Code:

.
,
.
audio::17:
.
.
.
cdrom::19:

are those numbers user ids or group ids? in any case I don't seem to be there, my id is 1000.

Nylex 06-12-2006 06:39 AM

Changing "owner" to "user" (or "users") in your fstab won't help with audio CDs, because you don't mount those..

yukie 06-12-2006 06:48 AM

ok I already added myself to the audio and cdrom user groups, but the problem persists... :(

worzel68 06-12-2006 07:09 AM

Quote:

/dev/cdrom /mnt/cdrom auto noauto,owner,ro
As Nylex says - the noauto means that the device isn't automatically mounted at boot time.

But changing this won't do anything if there is nothing in the cd drive, so you have to do both of the folowing:

Quote:

/dev/cdrom /mnt/cdrom auto noauto,user,ro
and

Quote:

mount /mnt/cdrom
the mount command works like this because the info it needs is in /etc/fstab.

Read the man page for mount - don't forget to use umount to get your CD back !!

yukie 06-12-2006 07:16 AM

thanks all for your suggestions, but I found a solution in a different thread. turns out i needed to add myself to the 'disk' and 'sys' usergroups.

just curious, though... honestly i feel this solution is a bit overkill. I didn't think I had to add myself to 'sys' just so I can play audio cds, but it works so what the heck.

thanks again.


All times are GMT -5. The time now is 01:26 AM.