Christoph Kukulies wrote:
> I configured a kernel (RH 6.1) 2.2.17-14 to have
> IDE-SCSI built in and I believe all that's necessary
> for cdrecord (1.8a29).
> 
> Under root I can cdrecord -scanbus and I get 
> # cdrecord -scanbus
> Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jörg Schilling
> Using libscg version 'schily-0.1'
> scsibus0:
>         0,0,0     0) 'LITE-ON ' 'LTR-12101B      ' 'LS38' 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) *
> 
> I also have linked /dev/scd0 to /dev/sg0
> lrwxrwxrwx   1 root     root            9 Feb 26 12:52 /dev/sg0 -> /dev/scd0

Christoph,
Don't make the above symbolic link. Cdrecord is trying to find
which scsi cdrom device (i.e. /dev/scd<n>) corresponds to a
scsi generic device (i.e. /dev/sg<m>). Once the relationship is
found then cdrecord uses the scsi generic interface to send
low level SCSI commands to the cdwriter.

Lets say the /dev/scd0 <-> /dev/sg1 . To use cdrecord as a
non-root user, read permissions must be set for /dev/scd0
while read-write permissions must be set on /dev/sg1.

In Linux this applies whether the cdwriter is on a SCSI
parallel interface (SPI), on a ATA/IDE bus (ATAPI cdwriter),
ieee1394, usb-2, etc.

> I gave scd0 group cdwriter membership and I belong to this group too.
> WHen I now do cdrecord -scanbus under my normal user role I get this:
> cdrecord -scanbus
> Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jörg Schilling
> cdrecord: Permission denied. Cannot open '/dev/sg1'. Cannot open SCSI driver.
> 
> It is funny that when I satisfy now sg1 to be linked to scd1 
> that cdrecord goes one higher and claims it cannot open sg2 ans so on.

Ahhhh. Please don't be so creative.

Doug Gilbert





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to