Bug 64725

Summary: cdrecord not found: wrong message
Product: [Applications] k3b Reporter: Wolfgang Rohdewald <wolfgang>
Component: generalAssignee: Sebastian Trueg <trueg>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: lurch
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Wolfgang Rohdewald 2003-09-22 12:47:06 UTC
Version:           0.10 (using KDE 3.1.9)
Compiler:          gcc version 3.3.2 20030908 (Debian prerelease)
OS:          Linux (i686) release 2.4.23-pre4

k3b says cdrecord not found, but it exists in /usr/bin.
However, it cannot be executed. It would be nice if
k3b could output a more concise error message.

H/home/wr$ cdrecord
/usr/bin/cdrecord: line 8: /usr/bin/cdrecord.mmap: Permission denied
/usr/bin/cdrecord: line 8: exec: /usr/bin/cdrecord.mmap: cannot execute: Success
[Exit 126 ]H/home/wr$ cd /usr/bin
/usr/bin$ l cdrecord*
-rwsr-xr-x    1 root     root          142 Sep 12 15:17 cdrecord
-rwsr-xr--    1 root     cdrom      342924 Sep 12 15:17 cdrecord.mmap
-rwsr-xr--    1 root     cdrom      342924 Sep 12 15:17 cdrecord.shm

/usr/bin$ l cdrecord*
-rwsr-xr-x    1 root     root          142 Sep 12 15:17 cdrecord
-rwsr-xr--    1 root     cdrom      342924 Sep 12 15:17 cdrecord.mmap
-rwsr-xr--    1 root     cdrom      342924 Sep 12 15:17 cdrecord.shm
Comment 1 Sebastian Trueg 2003-10-16 18:37:26 UTC
that is not possible because if K3b has no permission to execute cdrecord it is not able to determine if this is cdrecord or not.
Comment 2 Adam Cowell 2003-10-17 01:47:51 UTC
Ideally K3b to solve this problem as I have also encountered it is to change cdrecord.mmap and cdrecord.shm to be in the cdrecording group aswell which solved my problem. These are obviously files used by the newer cdrecord as my Debian installation is running 2.01a19 so is missed by K3b when it sets the system up
Comment 3 Sebastian Trueg 2003-10-17 09:52:58 UTC
no, cdrecord.mmap and cdrecord.shm are debian specific files and that's the reason why K3b does not check for them.
Comment 4 Grand Apeiron 2004-02-07 15:40:53 UTC
Hi,

i am using k3b 0.10.3 on debian.
I had the same message about missing cdrecord allthough it is/was installed.

The problem is that i can only execute cdrecord if i (the non-root user) has 
read permissions on the cdrecord executeable (and because of debian, correct permissions on the shm and map file).
Since k3b-setup sets 4711 or 4710 if you are using the group setting it actually doesnt work.

You should check if you are able to execute cdrecord by executing it from the console. 
If it doesn't work without read permission try it by doing a chmod like 4755 on /usr/bin/cdrecord or 4750 if you are in the group.


Greetings,
Grand Apeiron
Comment 5 JerryNovetsky 2004-10-09 10:47:09 UTC
Hi,
Getting same error "Unable to find dvd+rw-format executable".  Have tried to change permissions as described above but to no avail.  Please advise.
Thanks.
Comment 6 JerryNovetsky 2004-10-09 18:51:05 UTC
read all pertinent articles on this problem.  Edited /root/.kde/share/config/k3bsetup2rc:
Devices]
PLEXTOR CD-R   PREMIUM=7056,9100,auto,auto
PLEXTOR DVDR   PX-708A=7056,7000,auto,auto

[External Programs]
cdrdao default=/usr/bin/cdrdao
cdrdao user parameters=
cdrecord default=/usr/bin/cdrecord.mmap
cdrecord user parameters=
dvd+rw-format default=/usr/bin/dvd+rw-format
dvd+rw-format user parameters=
eMovix user parameters=
growisofs default=/usr/bin/growisofs
growisofs user parameters=
search path=/usr/bin/,/usr/local/bin/,/usr/sbin/,/usr/local/sbin/,/opt/schily/bin/,/sbin

[General Settings]
burning group=cdrom
use burning group=true

Made permissions of the file /usr/bin/dvd+rw-format:
-rwsr-xr-x  1 root cdrom 19920 Aug 30 09:18 dvd+rw-format

Permissions of /usr/bin/cdrdao, /usr/bin/cdrecord, /usr/bin/cdrecord.mmap, and 
/usr/bin/cdrecord.shm are the same.
I am a member of the group cdrom.
Permissions of /dev/hdc and /dev/hdd are:
brw-rw----  1 root cdrom 22, 0 Jul 22 15:54 /dev/hdc

Still getting:
Unable to find dvd+rw-format executable
K3b uses dvd+rw-format to format DVD-RWs and DVD+RWs.
Solution: Install the dvd+rw-tools package.

I don't see what I'm missing, obviously something.  Please assist.
Thanks,
Jerry
Comment 7 Sebastian Trueg 2004-10-10 10:59:59 UTC
please use a recent version. This has already been fixed.