Re: device file permissions the debian way
On Sat, Sep 17, 2005 at 06:35:06PM +0100, Antony Gelberg wrote:
> Haines Brown wrote:
> >I'm trying to set up a new installation of debian so that user can
> >play DVDs. I have debian sarge 2.6.8-2-686, an IDE dvd drive, gxine
> >0.4.1-1, libdvdread3-0.9.4-5. I can play .mp3 files OK with gzine.
> >I created a dvd symlink:
> > $ ls -l /dev/dvd
> > lrwxrwxrwx 1 root root 3 Sep 11 08:25 /dev/dvd -> hdc
> >I can play a dvd as root, but not as user. To play as user I am forced
> >to use a 666 permission for the device file, which is not the debian way:
> > $ ls -l /dev/hdc
> > brw-rw-rw- 1 root disk 22, 0 Jul 31 18:54 /dev/hdc
> >To do things the debian way, I should give /dev/hdc 660 permission and
> >add the user to the disk group, but it doesn't work.
> I'm not sure you should ever add a normal user to the disk group. I
> also don't think you should add symlinks in /dev, although that is less
> dangerous. Where is it written that this is TDW?
> You may wish to investigate udev. It should give /dev/hdc the correct
> group of cdrom, and it should be trivial to add a rule to create /dev/dvd.
Adduser <username> cdrom
i.e. adding a user to group cdrom
On my system, /dev/cdrom is a symlink to /dev/hdd
/dev/hdd is owned by root but group cdrom
brw-rw-rw- 1 root,cdrom 22,64 2005-02-26 06:38 hdd
[The device permissions are 0666 but that may be as a result of
changing permissions when setting up k3b]
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact