Quote:
Originally posted by Ali79
But setuid allows everybody to use k3b, and I would like only my user can use it.
|
To overcome this you could add a new group then only allow root and people in the group to run it:
groupadd -g 110 burning
chgrp burning /usr/bin/cdrecord
chmod 754 /usr/bin/cdrecord
Then edit /etc/group and add your username:
burning::110:[username]
I think there's a command for that but I can't remember.
note: you don't NEED to use the -g option - see man groupadd
Alternatively use the sudo command - see man sudo
As you can tell, it really helps YOU to read the man pages.
*edited for incorrect groupadd command*
edit 2: you still need the setuid bit after doing this