Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing CD drive protection the Gentoo way?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rafo
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 161
Location: Sollentuna, Sweden

PostPosted: Fri May 08, 2009 6:49 am    Post subject: Changing CD drive protection the Gentoo way? Reply with quote

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
View user's profile Send private message
obrut<-
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 183
Location: near hamburg, germany

PostPosted: Fri May 08, 2009 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
rafo
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 161
Location: Sollentuna, Sweden

PostPosted: Fri May 08, 2009 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum