allowing cdrecord non-root
Oliver Fuchs
oliverfuchs at onlinehome.de
Sun Aug 1 20:27:24 PDT 2004
On Sat, 31 Jul 2004, Wojciech Puchar wrote:
> how can i allow given group to be able to write cd's?
>
> in NetBSD doing (assuming group name cdrw)
>
> chgrp cdrw /dev/rcd0* /dev/cd0*
> chmod 660 /dev/rcd0* /dev/cd0*
>
>
> in FreeBSD doing this for /dev/cd0 and /dev/acd0 doesn't work.
>
> tried to do the same with /dev/xpt0 - doesn't work too.
>
> is it possible at all?
> _______________________________________________
Hi,
from man cdrecord you will get:
[...]
If you don't want to allow users to become root on your system,
cdrecord may safely be installed suid root. This allows all users or a
group of users with no root privileges to use cdrecord. Cdrecord in
this case checks, if the real user would have been able to read the
specified files. To give all user access to use cdrecord, enter:
chown root /usr/local/bin/cdrecord
chmod 4711 /usr/local/bin/cdrecord
To give a restricted group of users access to cdrecord enter:
chown root /usr/local/bin/cdrecord
chgrp cdburners /usr/local/bin/cdrecord
chmod 4710 /usr/local/bin/cdrecord
and add a group cdburners on your system.
Never give write permissions for non root users to the /dev/scg?
devices unless you would allow anybody to read/write/format all your
disks.
[...]
Oliver
--
... don't touch the bang bang fruit
More information about the freebsd-questions
mailing list