View previous topic :: View next topic |
Author |
Message |
rafo Apprentice
Joined: 18 Nov 2003 Posts: 161 Location: Sollentuna, Sweden
|
Posted: Fri May 08, 2009 6:49 am Post subject: Changing CD drive protection the Gentoo way? |
|
|
On a recently installed Gentoo system there is a CD drive and it appears as /dev/sr0 with 'brw-rw---- 1 root cdrom'.
This means that I can use it for playing audio CDs if I make myself a member of the cdrom group, do a `newgrp cdrom' and then launch the player application.
However, it seems to me it would be more practical if the permissions were 'brw-rw-rw-'. I am the only user on the machine (it is a laptop).
How should I achieve this in a clean way? I have found that if I change the "660" to "666" in /etc/udev/rules.d/65-permissions.rules I get the desired effect. However, the file says, "do not edit this file". Fair enough, but what do I do instead? |
|
Back to top |
|
|
obrut<- Apprentice
Joined: 01 Apr 2005 Posts: 183 Location: near hamburg, germany
|
Posted: Fri May 08, 2009 8:44 am Post subject: |
|
|
the clean way is to add your users to the cdrom group. i don't see any need to do "hacks" as you only have to make a single change to your group membership |
|
Back to top |
|
|
rafo Apprentice
Joined: 18 Nov 2003 Posts: 161 Location: Sollentuna, Sweden
|
Posted: Fri May 08, 2009 8:01 pm Post subject: |
|
|
Sorry--I see now that my testing wasn't systematic enough. I was trying out VLC and Amarok and it turns out that VLC needs to be emerged with the cdda USE flag. At some point this led me to incorrectly suspect a permissions problem.
With the USE flag issue fixed both of them can indeed be used for playing audio CDs if I have cdrom among my groups, and there is no need to do `newgrp cdrom' before launching the player. Thanks for good advice! |
|
Back to top |
|
|
|