Hi. I'm having problems configuring my cdrom drive to have the correct
ownership 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
lr-xr-xr-x 1 root root 13 Sep 4 16:59 cdrom -> cdroms/cdrom0
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/target0/lun0/cd
If I then attempt to access the drive, for instance using cdplay, or altering
permissions / ownership of the cdrom* symlinks, and _then_ restart devfsd, then
the ownership of /dev/ide/host0/bus1/target0/lun0/cd changes to 'root: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 either
placate this or advise better ways?
--
Alex Bowley, Production Engineer, Excite UK alex.bowley@xxxxxxxxxxxxxx
"This man has the mind of a four year old boy, and I bet he was glad to get rid
of it." - Groucho Marx
pgpGHG7QnloBH.pgp
Description: PGP signature
|