[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: adding a user to a group



xucaen@yahoo.com writes:

> Hi, How do I add a user (myself) to the group that can access the
> CD-ROM and CD-RW drives?

I'd do (as root) 'adduser xucaen cdrom', but this is only half of the
battle: the default installation blindly sets all of the disk devices
(/dev/hda, etc.) to group 'disk', but you probably don't want to be in
that group.  Figure out what device(s) your CD-ROM uses (/dev/sr0 for
SCSI or IDE-SCSI, possibly /dev/hdb or /dev/hdc for IDE but no
guarantees, try catting /proc/ide/hd?/model), and also change those
(as root) to group 'cdrom'.

  # adduser xucaen cdrom
  # chgrp cdrom /dev/hdc

This won't make it possible to burn CDs as a user; you need to be root
for that.  (RTF HOWTO.)  If you want to mount CDs on those devices,
make sure there's a relevant line in /etc/fstab with the 'user' flag set.

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: