devfs
[Top] [All Lists]

Re: ownership of target of /dev/cdroms/cdroms0

To: Alex Bowley <alex.bowley@xxxxxxxxxxxxxx>
Subject: Re: ownership of target of /dev/cdroms/cdroms0
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Tue, 4 Sep 2001 09:37:37 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <20010904171036.B571@london.excite.com>
References: <20010904171036.B571@london.excite.com>
Sender: owner-devfs@xxxxxxxxxxx
Alex Bowley writes:
> 
> --qcHopEYAB45HaUaB
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable

Argh! Please fix your mailer to send plain ASCII, not this Son-of-MIME
crap.

> Hi. I'm having problems configuring my cdrom drive to have the correct owne=
> rship under devfsd.
> 
> On bootup, my cdrom is in the 'disk' group by default, vis:
> lave:/dev# ls -l cdrom cdroms/cdrom0 ide/host0/bus1/target0/lun0/cd=20
> lr-xr-xr-x    1 root     root           13 Sep  4 16:59 cdrom -> cdroms/cdr=
> om0
> lr-xr-xr-x    1 root     root           33 Jan  1  1970 cdroms/cdrom0 -> ..=
> /ide/host0/bus1/target0/lun0/cd
> brw-rw----    1 root     disk      22,   0 Jan  1  1970 ide/host0/bus1/targ=
> et0/lun0/cd
> 
> If I then attempt to access the drive, for instance using cdplay, or alteri=
> ng permissions / ownership of the cdrom* symlinks, and _then_ restart devfs=
> d, then the ownership of /dev/ide/host0/bus1/target0/lun0/cd changes to 'ro=
> ot:cdrom', and I can read from the drive (as a normal user).
> 
> If I add the following line to /etc/devfs/perms, then it fixes the problem;
> REGISTER ^hdc* PERMISSIONS root.cdrom 0660
> 
> I get the gut feeling that this is the Wrong Way to do this. Can anyone eit=
> her placate this or advise better ways?

Sounds like you have a Debian system. What you're doing may or may not
fit in with the Debian way of doing things. I'll let Russell Coker,
who is the Debian package maintainer for devfsd, reply. I believe he
is on this list.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>