[PLUG] cdrecord does not run with root privileges

Shahms King shahms at shahms.com
Fri Mar 18 22:35:22 UTC 2005


My workaround was to:
1) install sudo
2) run visudo as root and add a line:

<username> ALL=(ALL) NOPASSWD: /usr/bin/cdrecord, /usr/bin/cdrdao

3) put wrapper scripts in /usr/local/bin for cdrecord and cdrdao:

#!/sbin/sh
sudo /usr/bin/cdrecord "$@"

4) make sure they are executable
5) run "search" in k3b and tell it to use the programs in /usr/local/bin

Voila! it should work.

Also note that as long as k3b doesn't try and make cdrecord setuid root,
it (cdrecord) should run fine as an ordinary user if you have rw access
to the burner device, but will have a higher likelihood of buffer
underruns.

On Fri, 2005-03-18 at 16:38 -0500, Carlos Konstanski wrote:
> If you have a debian load, try dpkg-reconfigure cdrecord
> 
> On Fri, 18 Mar 2005, Dirk Ouellette wrote:
> 
> > Date: Fri, 18 Mar 2005 13:20:17 -0800
> > From: Dirk Ouellette <hapibeli at comcast.net>
> > Reply-To: General Linux discussion and assistance <plug at lists.pdxlinux.org>
> > To: PLUG <plug at lists.pdxlinux.org>
> > Subject: [PLUG] cdrecord does not run with root privileges
> > 
> > How do I resolve this issue? K3b won't do it.
> > Thanks
> >
> > cdrecord does not run with root privileges
> > It is highly recommended to configure cdrecord to run with root
> > privileges. Only then cdrecord runs with high priority which increases
> > the overall stability of the burning process. Apart from that it allows
> > changing the size of the used burning buffer. A lot of user problems
> > could be solved this way. This is also true when using SuSE's resmgr.
> > Solution: Use K3bSetup to solve this problem.
> > cdrdao does not run with root privileges
> > It is highly recommended to configure cdrdao to run with root privileges
> > to increase the overall stability of the burning process.
> > Solution: Use K3bSetup to solve this problem.
> >
> > _______________________________________________
> > PLUG mailing list
> > PLUG at lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
> 
-- 
Shahms E. King <shahms at shahms.com>
Multnomah ESD

Public Key:
http://shahms.mesd.k12.or.us/~sking/shahms.asc
Fingerprint:
1612 054B CE92 8770 F1EA  AB1B FEAB 3636 45B2 D75B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20050318/28b27deb/attachment.asc>


More information about the PLUG mailing list