k3b wants "root privileges" Which privileges?
#1
Posted 05 May 2007 - 12:40 PM
#2
Posted 05 May 2007 - 01:16 PM
Thomas Jefferson
#3
Posted 05 May 2007 - 01:45 PM
#4
Posted 05 May 2007 - 02:04 PM
k3bsetupfrom a console.
#5
Posted 05 May 2007 - 02:14 PM
#6
Posted 05 May 2007 - 03:06 PM
Quote
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.
#7
Posted 05 May 2007 - 03:20 PM
Somebody who has k3bsetup on there system could do this:
$ which k3bsetup # will output something like:
/usr/bin/k3bsetup
$ rpm -qf /usr/bin/k3bsetup #will tell you which rpm has k3bsetup
All I can say is that k3b-1.0-3mdv2007.1 which is Mandriva 2007.1 installs does not have this program.
#8
Posted 05 May 2007 - 03:56 PM
If I remember correctly, the message you get gives you a choice to have the message to appear each time K3B is opened or not. The sensible thing is to remove the tick and it will no longer reappear. The earlier Configure K3B only really required you to put a tick in a box and click apply. I believe it now does that by default i.e. automatically.
Cheers. John.
AMD Athlon-64-X2 6400+ DualCore Processor, Gigabyte MA790Z-DS4 MainBoard, Gigabyte Nvidia-GeForce-9600-GT VideoCard, 4Gb Cosair Memory, 2 x WD SATA-II 320GB 16mb HDDs, LG Sata DVD-R/RW Burner, LeadTek WinFast-DTV2000-H Video Capture Card, LG 24" LCD HDMI Monitor, Hewlitt-Packard PhotoSmart B109a-m Printer, Epson Perfection 2450 Photo Scanner, APC BackUPS-CS-650 UPS.
JOHN. (75yrs, Young)
Registered LINUX user #318452
#9
Posted 05 May 2007 - 08:24 PM
I guess it tells you that cdrecord, cdrdao or both are not running with root priviledges, and that this should be fixed.
Firstly, you can safely ignore this message with any modern kernel. All you need is having your user at the "optical" group (might also be called "cdrom" or whatever your distro scripts wish).
And anyway, 'fixing' the above files' permissions is easily done via
kdesu k3bsetup2
On some distros k3b is build without the k3bsetup module, because the package maintainers think it's not needed, or that it's too intrusive. In that case you need to fix the permissions manually, but as I've said before you can safely ignore the message about cdrecord not running suid root.
You have also ignored it, because you falsely translated it as a hint of running the whole program as root. Please read again the warning more carefully.
This post has been edited by scarecrow: 05 May 2007 - 08:25 PM
#10
Posted 05 May 2007 - 09:19 PM
diehl, on May 5 2007, 02:40 PM, said:
You can also type in console as root
chmod 4711 /usr/bin/cdrecord
to give cdrecord privileges it requires, and avoid the warning message.
#11
Posted 05 May 2007 - 10:57 PM
Better than ignoring the warning message, I think! :D
Out of interest, what does 4711 mean? And how does that let a normal user run something with root privileges?
#12
Posted 06 May 2007 - 08:51 AM
In short there are two (or maybe three) ways of changing privileges on Linux, at least as far as I know. One of them, and preferred according to many users, is by using digits to describe rights for groups and users. Conventionally these numbers stand for permissions to:
4 - read
2 - write
1 - execute
and all combinations of them:
7 (4+2+1) - read + write + execute
6 (4 + 2) - read + write
5 (4 + 1) - read + execute
3 (2 + 1) - write + execute
So let's take a closer look to chmod 711 (...) (I've knowingly omitted the number "4", and You'll see why I did so soon).
The order of these numbers is predetermined: first stands for the owner of the file, second for the group to which the owner belongs to, and third for all others.
There are also special bits, which can be adjusted. This is what the first number in chmod 4711 stands for. There are UID and GID and so called "sticky bit":
1 - "sticky bit"
2 - means setguid
4 - means setuid
and, as above:
3 - "sticky bit" + setgid
5 - "sticky bit" + seruid
6 - setgid + setuid
7 - "sticky bit" + setgid + setuid
Conclusion:
chmod 4711 /usr/bin/cdrecord
means that user (You) can read, write (make changes) and execute file cdrecord, and that cdrecord has setuid with all consequences.
There're also other ways to describe privileges on Linux, using letters:
Quote
w - write access
x - execute access (also access to go into folder, in case chmod refers to a folder)
u - setuid
g - setgid
t - "sticky bit"
and this is what you see most often when You tape in console
[zibi1981@localhost bin]$ ls -al (...)lrwxrwxrwx 1 root root 26 kwi 21 12:43 cdrecord -> /etc/alternatives/cdrecord*(...)
rwx - read + write + execute access to that file. The "l" before that means "link".
Hope I helped a bit ;)
This post has been edited by zibi1981: 06 May 2007 - 08:54 AM
#13
Posted 06 May 2007 - 10:36 AM
Thanks for the info!
Just one small correction- I (as a normal user) don't get the "7" privileges because I'm not the owner of the file, I just get the "1" (execute only). The executable belongs to root and the cdwriter group.
#14
Posted 18 May 2007 - 08:00 AM
neddie, on May 6 2007, 12:36 PM, said:
Thanks for the info!
Just one small correction- I (as a normal user) don't get the "7" privileges because I'm not the owner of the file, I just get the "1" (execute only). The executable belongs to root and the cdwriter group.
Thanks for the correction ;) Hope that my post will help someone to understand a bit more :P
#15
Posted 26 May 2007 - 02:24 PM

Help
MultiQuote









