[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-desktop
Subject:    Re: [gentoo-desktop] cdrecord only works as root?
From:       n cookit <gentoo_mail () yahoo ! ca>
Date:       2002-11-20 19:37:28
[Download RAW message or body]

excellent. This was remarkably informative and helpful not only to me, but to any one \
else with the same question and perhaps less familiarity to Linux than myself. I \
                sincerely thank you.
-n
 Tom Prado <tprado@charter.net> wrote:
This is how I do it:

Look at the group of where /dev/sg0 is pointing to:

tprado $ ls -l /dev/sg0
lr-xr-xr-x 1 root root 36 Nov 19 21:03 /dev/sg0 -> 
scsi/host0/bus0/target0/lun0/generic
tprado $ ls -l /dev/scsi/host0/bus0/target0/lun0/generic
crw-rw---- 1 root cdrw 21, 0 Dec 31 1969 
/dev/scsi/host0/bus0/target0/lun0/generic

Add yourself to that group -> cdrw.

I'm able to burn using my login. Here's my groups:

tprado $ groups
tprado wheel floppy audio dialout video cdrw xcdwrite

tprado $ cdrecord -scanbus
Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'TOSHIBA ' 'DVD-ROM SD-M1502' '1008' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) *
1,1,0 101) 'PLEXTOR ' 'CD-R PX-W124TS' '1.07' Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *



If the generic device does not have a cdrw group, add this to 
/etc/devfsd.conf:

# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS 
root.cdrw 660


Hope this helps.
-Tom



n cookit wrote:
> i've noticed that my burner will only work while i'm logged in as root.
> 
> in particular, i am referring to the applications 'gcombust' and 'arson' 
> which use cdrecord. Both of these are excellent burning tools but 
> cdrecord will only find the burner if i open these apps as root. For 
> obvious reasons I dont want to run X-apps as root and would like to know 
> what else i'm supposed to be doing. I know it's possible to get it 
> working 'somehow' as it worked fine with my former Mandrake 
> installation. iirc, was there a usergroup called 'cdrecord' or something?
> 
> here is the output when i try to run it as a normal user:
> 
> sh-2.05a$ cdrecord -scanbus
> Cdrecord 1.11a30 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
> cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI 
> driver.
> cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you 
> are root.
> 
> what info should i provide that may help?
> 
> thanks,
> 
> -N
> 
> 
> ------------------------------------------------------------------------
> Post your free ad now! *Yahoo! Canada Personals* 
> 




--
gentoo-desktop@gentoo.org mailing list



---------------------------------
Post your free ad now! Yahoo! Canada Personals


[Attachment #3 (text/html)]

<P>excellent. This was remarkably informative and helpful not only to me, but to any \
one else with the same question and perhaps less familiarity to Linux than myself. \
<P>I sincerely thank you. <P>-n
<P>&nbsp;<B><I>Tom Prado &lt;tprado@charter.net&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px \
solid"><BR>This is how I do it:<BR><BR>Look at the group of where /dev/sg0 is \
pointing to:<BR><BR>tprado $ ls -l /dev/sg0<BR>lr-xr-xr-x 1 root root 36 Nov 19 21:03 \
/dev/sg0 -&gt; <BR>scsi/host0/bus0/target0/lun0/generic<BR>tprado $ ls -l \
/dev/scsi/host0/bus0/target0/lun0/generic<BR>crw-rw---- 1 root cdrw 21, 0 Dec 31 1969 \
<BR>/dev/scsi/host0/bus0/target0/lun0/generic<BR><BR>Add yourself to that group -&gt; \
cdrw.<BR><BR>I'm able to burn using my login. Here's my groups:<BR><BR>tprado $ \
groups<BR>tprado wheel floppy audio dialout video cdrw xcdwrite<BR><BR>tprado $ \
cdrecord -scanbus<BR>Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 \
J?rg Schilling<BR>Linux sg driver version: 3.1.24<BR>Using libscg version \
'schily-0.7'<BR>scsibus0:<BR>0,0,0 0) 'TOSHIBA ' 'DVD-ROM SD-M1502' '1008' Removable \
CD-ROM<BR>0,1,0 1) *<BR>0,2,0 2) *<BR>0,3,0 3) *<BR>0,4,0 4) *<BR>0,5,0 5) *<BR>0,6,0 \
6) *<BR>0,7,0 7) *<BR>scsibus1:<BR>1,0,0 100) *<BR>1,1,0 101) 'PLEXTOR ' 'CD-R \
PX-W124TS' '1.07' Removable CD-ROM<BR>1,2,0 102) *<BR>1,3,0 103) *<BR>1,4,0 104) \
*<BR>1,5,0 105) *<BR>1,6,0 106) *<BR>1,7,0 107) *<BR><BR><BR><BR>If the generic \
device does not have a cdrw group, add this to <BR>/etc/devfsd.conf:<BR><BR># Give \
the cdrw group write permissions to /dev/sg0<BR># This is done to have non root user \
use the burner (scan the scsi bus)<BR>REGISTER \
^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS <BR>root.cdrw \
660<BR><BR><BR>Hope this helps.<BR>-Tom<BR><BR><BR><BR>n cookit wrote:<BR>&gt; i've \
noticed that my burner will only work while i'm logged in as root.<BR>&gt; <BR>&gt; \
in particular, i am referring to the applications 'gcombust' and 'arson' <BR>&gt; \
which use cdrecord. Both of these are excellent burning tools but <BR>&gt; cdrecord \
will only find the burner if i open these apps as root. For <BR>&gt; obvious reasons \
I dont want to run X-apps as root and would like to know <BR>&gt; what else i'm \
supposed to be doing. I know it's possible to get it <BR>&gt; working 'somehow' as it \
worked fine with my former Mandrake <BR>&gt; installation. iirc, was there a \
usergroup called 'cdrecord' or something?<BR>&gt; <BR>&gt; here is the output when i \
try to run it as a normal user:<BR>&gt; <BR>&gt; sh-2.05a$ cdrecord -scanbus<BR>&gt; \
Cdrecord 1.11a30 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling<BR>&gt; \
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI <BR>&gt; \
driver.<BR>&gt; cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you \
<BR>&gt; are root.<BR>&gt; <BR>&gt; what info should i provide that may help?<BR>&gt; \
<BR>&gt; thanks,<BR>&gt; <BR>&gt; -N<BR>&gt; <BR>&gt; <BR>&gt; \
------------------------------------------------------------------------<BR>&gt; Post \
your free ad now! *Yahoo! Canada Personals* <BR>&gt; <HTTP: ca.personals.yahoo.com \
/><BR><BR><BR><BR><BR>--<BR>gentoo-desktop@gentoo.org mailing \
list<BR></BLOCKQUOTE><p><br><hr size=1>Post your free ad now! <a \
href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic