Hi everyone,
well I think I've managed to solve this problem... or at least get something that works for me.
So my Slackware 11.0 system was in the following state:
Code:
chris@dinosaur:~$ groups root
root : root bin daemon sys adm disk wheel floppy audio video cdrom
Code:
chris@dinosaur:~$ groups chris
chris : users disk audio video cdrom
Code:
chris@dinosaur:~$ ls -ld /dev; ls -ld /dev/cdrom; ls -ld /dev/hdc; ls -ld /mnt/cdrom
drwxrwxrwx 17 root root 40960 2006-11-19 14:06 /dev/
lrwxrwxrwx 1 root root 8 2006-10-22 19:08 /dev/cdrom -> /dev/hdc
brwxrwxrwx 1 root disk 22, 0 2002-06-09 20:27 /dev/hdc
drwxr-xr-x 2 root root 4096 2002-03-16 07:34 /mnt/cdrom/
I find that if I try to play CDs with xmms (although the situation is similar with KsCd and Amarok), the following occurs:
- xmms /dev/cdrom
- open
- root: draw closes, xmms points to /mnt/cdrom, select tracks which then play.
- user: draw closes, xmms points to /dev, can't play any music.
- closed:
- root: xmms points to /mnt/cdrom, select tracks which then play.
- user: xmms points to /dev, can't play any music.
- xmms /dev/hdc
- open:
- root: draw closes, xmms points to /mnt/cdrom, select tracks which then play.
- user: draw closes, xmms points to /dev, can't play any music.
- closed:
- root: xmms points to /mnt/cdrom, select tracks which then play.
- user: xmms points to /dev, can't play any music.
- xmms /mnt/cdrom
- open:
- root: draw stays open, xmms points to /mnt/cdrom, shows no tracks, can't play any music.
- user: draw stays open, xmms points to /dev, can't play any music.
- closed:
- root: CD starts playing, no need to select which tracks.
- user: CD starts playing, no need to select which tracks.
where open/closed refer to the state of the CD draw when I run the xmms command.
I had assumed that as running the command
xmms /dev/cdrom as root closed the CD draw and played the CD, that running the command
xmms /mnt/cdrom would also close the draw and play the CD. As the above hopefully illustrates, this isn't the case.
To guarantee success as a normal user, the CD draw must be closed and then the command
xmms /mnt/cdrom.
Earlier in this thread I added root to the
audio,
video and
cdrom groups and my normal user chris to the
disk group, as shown at the start of this post. I also changed my permissions to those shown at the start of this post.
I changed both root and chris back to their default groups, and the permissions back to their default values. However, normal users were unable to play CDs. It seems that in order that a normal user may play audio CDs, they must be a member of the
disk group.
My final group membership and permissions are as follows:
Code:
chris@dinosaur:~$ groups root
root : root bin daemon sys adm disk wheel floppy
Code:
chris@dinosaur:~$ groups chris
chris : users disk audio video cdrom
Code:
chris@dinosaur:~$ ls -ld /dev; ls -ld /dev/cdrom; ls -ld /dev/hdc; ls -ld /mnt/cdrom
drwxr-xr-x 17 root root 40960 2006-11-19 14:06 /dev/
lrwxrwxrwx 1 root root 8 2006-10-22 19:08 /dev/cdrom -> /dev/hdc
brw-rw---- 1 root disk 22, 0 2002-06-09 20:27 /dev/hdc
drwxr-xr-x 2 root root 4096 2002-03-16 07:34 /mnt/cdrom/
Thanks to everyone who has contributed, but in particular bl0tt0, who can have a pint on me.
Cheers,
Chris