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

Re: could not eject CDROM as a normal user: [solved]



On Mon, Dec 08, 2003 at 06:36:19AM -0800, Karsten M. Self wrote:
> on Sun, Dec 07, 2003 at 04:06:11AM -0500, H. S. (greatexcalibur@yahoo.com) wrote:
> > Then, (thanks to:
> > http://lists.debian.org/debian-user/2000/debian-user-200012/msg04202.html 
> > where it is suggested *NEVER* to make a normal user a member of the 
> > 'disk' group), I changed it to:
> > /usr/src# chown root:cdrom /dev/hdc
> > /usr/src# ls -l /dev/hdc
> > brw-rw----    1 root     cdrom     22,   0 Mar 14  2002 /dev/hdc
> > 
> > And I am already a member of 'cdrom' group. Now I can use the eject the 
> > command as a normal user to open/close the CD tray.
> > 
> > HTH somebody, since I don't recall getting a satisfactory answer when I 
> > asked this earlier a few weeks ago.
> 
> Yes, this is the correct fix.
> 
> The reason not to make a normal user a member of the disk group is that
> this generally gives read *and* write access to the raw disk device
> itself.  This is a really good way to utterly destroy your data.
> 
> 'cdrom' by contrast is generally read-only.  Far less harm possible.

FWIW, /usr/share/doc/base-passwd/users-and-groups.html details what the
various standard groups are for, among other things. (Improvements
always welcome.)

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: