K3B with Sudo
For anyone who’s using KDE 3.2 and has had problems with K3B (specifically cdrecord or similar failing because it didn’t have the right permissions…) I discovered a post to a mailing list that got my issues sorted out.
Apparently making cdrecord et al suid isn’t enough – you need to sudo properly, so what I did was this:
Edit /etc/sudoers and add a the following:
myusername myhost = NOPASSWD: /usr/bin/cdrecord
myusername myhost = NOPASSWD: /opt/kde3/bin/k3b
Obviously (I hope!) you need to replace “myusername” with your own username and “myhost” with the name of your machine (and make sure the paths match your own installation – I’m on SuSe 9.1). Finally, edit your menu, and in the entry that loads K3B, change the target from “k3b” to “sudo k3b”.
And Bob’s yer wossname….
No related posts.
No comments yet.