[wellylug] cdrom permissions

Richard Hector rhector at actrix.gen.nz
Mon Aug 19 23:29:40 NZST 2002


On Mon, 2002-08-19 at 23:13, Tom Peck wrote:
> Quoting james hunt <krjimh at yahoo.com>:
> 
> > I can't get my cdplayer to work for a user. It's ok
> > from root.
> > I get the message is the CDROM device a part of the
> > cd-rom group?
> 
> Type 'groups' to see what groups you are part of, if there is no 'cd-rom' then 
> su to root and:
> 
> cat /etc/group | grep cd-rom 

I think this qualifies for a UUOC (useless use of cat) award :-)

grep cd-rom /etc/group

> to see if there is a 'cd-rom' group, if not, from root create the group:
> 
> groupadd cd-rom
> 
> then give add your user to the new group 'cd-rom', as well as it's previous 
> groups (from root):
> 
> usermod -G prevgroups,cd-rom username

Ouch.

adduser username group

works nicely here, without having to get all the other groups right.

> 
> Replace prevgroups with your user's previous groups, and username with your 
> username.
> 
> Now relogin the user - type groups to make sure you are now part of the 'cd-
> rom' group and you're away.

Note that my Debian 3.0 setup has a cdrom (not cd-rom) group, but it has
no members. I can use the cd player as a normal user fine (either as a
player, or mounting a CD) - though I have to use the socket on the front
as I don't have an internal audio cable.

Richard



------------------------ Yahoo! Groups Sponsor ---------------------~-->
4 DVDs Free +s&p Join Now
http://us.click.yahoo.com/pt6YBB/NXiEAA/Ey.GAA/0XFolB/TM
---------------------------------------------------------------------~->

  .-.   Wellington
  /V\   Linux
 // \\  Users       
/(   )\ Group
 ^^-^^
        http://wlug.paradise.net.nz/

To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
  

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the wellylug mailing list