Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94039

Summary: cdrecord cannot record as non-root
Product: Gentoo Linux Reporter: Chris Picton <chrisp>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Picton 2005-05-25 23:50:09 UTC
I am using gentoo-sources 2.6.11-gentoo-r9
I have just installed cdrecord-prodvd-2.01.01-r1

My /etc/defaults/cdrecord has:
CDR_DEVICE=plextor
CDR_FIFOSIZE=64m
plextor=        ATA:1,0,0       -1      -1      "burnfree"

I am in the 'disk' group

When trying to write a dvd as a normal user, I get:
cdrecord-wrapper.sh -sao -v /mnt/e/Tangent/Solaris_10/sol-10-GA-x86-dvd-iso.iso
Cdrecord-ProDVD-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J\uffffrg Schilling
Unlocked features: ProDVD Clone
Limited  features:
This copy of cdrecord is licensed for: private/research/educational_non-commercial_use
cdrecord-ProDVD: Warning: Running on Linux-2.6.11-gentoo-r9-chris-2
cdrecord-ProDVD: There are unsettled issues with Linux-2.5 and newer.
cdrecord-ProDVD: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
scsidev: 'ATA:1,0,0'
devname: 'ATA'
scsibus: 1 target: 0 lun: 0
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Driveropts: '"burnfree"'
SCSI buffer size: 64512
cdrecord-ProDVD: Cannot allocate memory. Cannot get SCSI I/O buffer.


If I setuid the binary to root, I get exactly the same

If I run as root, I get
cdrecord-wrapper.sh -sao -v /mnt/e/Tangent/Solaris_10/sol-10-GA-x86-dvd-iso.iso
Cdrecord-ProDVD-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J\uffffrg Schilling
Unlocked features: ProDVD Clone
Limited  features:
This copy of cdrecord is licensed for: private/research/educational_non-commercial_use
cdrecord-ProDVD: Warning: Running on Linux-2.6.11-gentoo-r9-chris-2
cdrecord-ProDVD: There are unsettled issues with Linux-2.5 and newer.
cdrecord-ProDVD: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
scsidev: 'ATA:1,0,0'
devname: 'ATA'
scsibus: 1 target: 0 lun: 0
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Driveropts: '"burnfree"'
SCSI buffer size: 64512
atapi: -1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'PLEXTOR '
Identifikation : 'DVDR   PX-708A  '
Revision       : '1.08'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: DVD+R
Profile: DVD+R (current)
Profile: DVD+RW
Profile: DVD-RW sequential overwrite
Profile: DVD-RW restricted overwrite
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R
Profile: CD-ROM
Using generic SCSI-3/mmc-3 DVD+R driver (mmc_dvdplusr).
Driver flags   : DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 983040 = 960 KB
Drive DMA Speed: 29729 kB/s 168x CD 21x DVD
FIFO size      : 67108864 = 65536 KB
Track 01: data  2605 MB
Total size:     2605 MB = 1334080 sectors
Current Secsize: 2048
[snip]

And the burn works.

How can I get cdrecord to allow me to record as non-root?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-26 02:32:17 UTC
Try removing the suid bit from cdrecord and cdrdao...

*** This bug has been marked as a duplicate of 68825 ***