5.3: how to make /dev/acd0 world readable?
Vladimir Grebenschikov
vova at fbsd.ru
Wed Nov 3 04:10:52 PST 2004
В вт, 02/11/2004 в 22:33 +0900, Rob пишет:
> Hi,
>
> ls /dev/acd0 says:
>
> crw-r----- root operator 4, 12 Nov 2 00:27 /dev/acd0
>
> For my cd-player, I need it at least to be world readable.
>
> But /dev is a funny directory on 5.3, quite different from 4.10 case.
> How can I do that?
# pw group add cd
# cat >> /etc/devfs.rules
[devfsrules_common=7]
add path 'acd*' mode 660 group cd
add path 'cd*' mode 660 group cd
add path 'pass*' mode 660 group cd
add path 'xpt*' mode 660 group cd
^D
# echo 'devfs_system_ruleset="devfsrules_common"' >> /etc/rc.conf
# /etc/rc.d/devfs restart
#
then put all required users to group cd, or just change 660 to any
acceptable to you permission bits (say 664)
be care, access to xpt* can compromise any SCSI device on related CAM
bus, frankly speaking pass* and xpt* is required for writing CD/DVD with
cdrecord, if you have ATAPI CDROM and do not pan use atapicam you need
only acd* entry.
(really not sure about /etc/rc.d/devfs restart - never tried it, but
should work)
also, this solution will work for plugable cd crives
(pccard/firewire/usb/scsi/whatever...)
also 'man 8 devfs' - is not bad place to start
> Rob.
PS:
to all, we need better documentation for /etc/devfs.ruleset file.
--
Vladimir B. Grebenchikov
vova at fbsd.ru
More information about the freebsd-current
mailing list