Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14861 - K3B-0.7.5 doesn't see cdrdao or cdrecording for User, works for Root.
Summary: K3B-0.7.5 doesn't see cdrdao or cdrecording for User, works for Root.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-31 11:59 UTC by Decibels
Modified: 2003-08-12 12:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Decibels 2003-01-31 11:59:43 UTC
User-Agent:       
Build Identifier: 

K3B setups up a default group of 'cdrecording' it will make the changes to
/etc/group and chgrp to /usr/bin/cdrdao and /usr/bin/cdrecord to 'cdrecording'
group. It will also add any User you pick to the 'cdrecording' group.It will
then copy the /etc/group file to /etc/group.k3bsetup.

It will not work though. You can make it work various ways:
1) Chown to The User on cdrdao and cdrecording. Not good only lets one user in then.
2) Chgrp to 'users' group. Will work.

What don't work:
1) Group 'cdrecording', even though User is in the 'cdrecording' group.
2) Chgrp to 'cdrw'.
3) Adding (have to do manually, KUser won't do it) 'cdrecording' group to
'users' group. Even though it shows up in /etc/group.k3bsetup when rerun kd3bsetup. 

Not sure exactly what to do.
1) Either make a ebuild note to not use the default group of 'cdrecording' but
The Users primary default group of 'users' or whatever their default group is.
2) Change K3B to use the Primary Group as default.
3) Fix what is causing 'cdrecording' group to not work.

Forum thread at: http://forums.gentoo.org/viewtopic.php?t=32494
 

Reproducible: Always
Steps to Reproduce:
1.Install K3B
2.Run k3bsetup, leave the default 'cdrecording' group in place.
3.Let k3b make the changes to groups and fstab (it won't use the same device as
other CD Burner programs and it won't let you add one. Maybe another bug? I use
/dev/sr0 with all my other Burners and works. K3B won't let you add it like that.)
4. Try to use the Burner as USER. Click on the Settings/Configure K3b/Programs.
Cdrdao and cdrecording will not be found and using the search button doesn't fix it.
5. Run through k3bsetup again. Change the default group to 'users' and it will work.

Actual Results:  
Except for doing #5 the user cannot use the program unless running as root.

Expected Results:  
The Setup was suppose to take care of making all the necessary changes so system
Users added to it can use the program. It doesn't.
Comment 1 SpanKY gentoo-dev 2003-01-31 17:03:33 UTC
spider: another cd burner w/permission issues
Comment 2 Decibels 2003-01-31 19:17:49 UTC
Ya, Gcombust usually complains that you aren't root or don't have the permissions set when you do. But K3b states that it is Setup and going to setup the permissions specifically so that users can use the burner. 
Comment 3 Toby Dickenson 2003-03-01 19:31:47 UTC
k3b 0.7.5 works for me, without needing to allow k3bsetup to make any changes to  
permissions/owners/groups.  
  
Gentoo's default pam_console setup means that the locally logged on user is automatically  
made the owner of the scsi generic devices. It all 'just works'.  
  
 
A possible answer for the original reporter: are you aware that after adding yourself to a new 
group you need to log out, then log back in for the new group to take effect? Your problems 
are consistent with not doing this. 
 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2003-04-20 06:56:19 UTC
Well... here cdrdao, cdrecord are installed (by their ebuilds) as world-excutable. Any permission 
issue is I think handled on getting write access to the cdrw devicefile. Is this wrong? 
Comment 5 Toby Dickenson 2003-04-24 17:38:13 UTC
> Is this wrong?  
 
The ebuild isnt wrong, but it doesnt follow the permissions recommendations made by the 
cdrecord man page: 
1. make cdrecord (and cdrdao) setuid root, to improve its reliability 
2. create a seperate 'cdburners' group, to avoid yet another word-executable setuid root 
program 
 
Im not sure whether this is worth improving in the cdrecord ebuild. 
 
As a completely seperate question, k3b has a GUI setup process that offers to make these 
changes. It also wants to include some other changes that are not so sensible - such as 
changing permissions on some device nodes which pam_console will immediately overwrite. 
 
I understand the redhat distribution of k3b has this page removed from k3bsetup. 
It may be worth adding a note to the k3b ebuild saying something like: 
 
""" 
The K3b Setup program will offer to change some permissions and create 
a user group. These changes are not necessary. We recommend that you 
clear the two check boxes 'let k3b make changes for cdrecord and cdrdao' and 
'let k3b make changes for the devices' when running K3b Setup. 
""" 
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2003-06-13 13:37:09 UTC
Does this issue still persist?  k3b 0.8.1 is now available (as well as 0.9_pre1). 
Comment 7 Toby Dickenson 2003-06-14 05:42:14 UTC
nothing has changed in k3b 0.8.1, and there is no sign of any difference in the 0.9.x 
changelog. 
 
I have had one colleague who was confused by this same issue. I think adding the warning I 
wrote at the end of #5 to the k3b ebuild would avoid this confusion. 
 
 
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2003-08-12 12:14:45 UTC
Warning has been added to 0.9 ebuild.