Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86206 - cdrdao gives error when trying to burn as normal user
Summary: cdrdao gives error when trying to burn as normal user
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 18:53 UTC by NightTwix
Modified: 2005-04-25 14:05 UTC (History)
0 users

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 NightTwix 2005-03-21 18:53:13 UTC
burning as root is working and setting SUID on cdrdao works as well (thats the solution/workaround mentioned in the forums).
But i just cannot imagine that this is the correct way.
btw, cdrecord works fine after i added the user to the "disk" group
so, its only cdrdao giving that error when trying to burn as non-root...

Reproducible: Always
Steps to Reproduce:
1.cdrdao write --device ATAPI:0,1,0 some.cue
2.
3.

Actual Results:  
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
                                
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
                                
Using libscg version 'schily-0.8'
                                
ATAPI:0,1,0: ATAPI CD-R/RW 12X8X32      Rev: 9.BC
Using driver: Generic SCSI-3/MMC (raw writing) - Version 2.0 (options 0x0000)
                                
Burning entire 79 mins disc.    
Starting write at speed 12...   
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
ERROR: Cannot prevent/allow medium removal.



$ id
uid=1000(user) gid=35(games) groups=5(tty),6(disk),10(wheel),18(audio),19(cdrom)
,35(games),80(cdrw),100(users),250(portage)
# uname -a
Linux nighttwix 2.6.10-gentoo-r6 #4 Wed Mar 16 06:01:49 CET 2005 i686 AMD 
Athlon(tm) XP 3000+ AuthenticAMD GNU/Linux
---
$ cdrdao scanbus
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

Using libscg version 'schily-0.8'

ATA:0,1,0            ATAPI   , CD-R/RW 12X8X32 , 9.BC
---
# emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 20:55:58)
]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi alsa apache2 apm arts audiofile avi berkdb bitmap-
fonts bzlib cdr crypt curl directfb divx4linux emboss encode esd ethereal fam 
fbcom flac font-server foomaticdb fortran ftp gbdm gdbm geoip gif gnome gpm gtk 
gtk2 gtkhtml guile imagemagick imlib jpeg libg++ libwww mad maildir mikmod mime 
mmx motif mozilla mp3 mpeg mppe-mppc mysql ncurses nls nocd nptl offensive 
oggvorbis opengl oss pam pdflib perl php png prelude python qt quicktime 
readline samba sasl sdl slang snmp sockets spell sse ssl svga tcltk tcpd tiff 
truetype truetype-fonts type1-fonts unicode usb vhosts videos wmf x86 xml2 xmms 
xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2005-04-19 14:37:21 UTC
Can you try with cdrdao --dev=/dev/hdc (or whatever your cd-recorder is)?
Comment 2 NightTwix 2005-04-20 14:21:33 UTC
it's working with "--device /dev/hdb" and SUID bit NOT set.
but i can't test if it's working now with "--device ATAPI:0,1,0", too (cause i just used my last empty cd ;)
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2005-04-25 14:05:32 UTC
> it's working with "--device /dev/hdb" and SUID bit NOT set.

The the proper way for access to the drive.  As it works, I close this bug.