View previous topic :: View next topic |
Author |
Message |
Penulci Tux's lil' helper
Joined: 12 Jun 2002 Posts: 119 Location: Vienna, Austria
|
Posted: Fri Feb 28, 2003 8:02 pm Post subject: SCSI Permission Problems |
|
|
I use an external SCSI-Burner and a SCSI Scanner. Both are recognized if I do a cdrecord -scanbus. sane-find-scanner reports my scanner also as present.
I am just allowed to access these devices as root. I played around with the /etc/devfsd.conf in different ways. Butevery other user accept root, no matter if he is in the group, users, cdrw, scan or some or all of them is allowed to access. I found no satisfying solution searching the forums.
Greetings Penulci |
|
Back to top |
|
|
DuF Advocate
Joined: 09 Dec 2002 Posts: 2687 Location: Paris
|
Posted: Sat Mar 01, 2003 5:34 am Post subject: |
|
|
Maybe it's a problem with /etc/security/console.perms, check this file to verify if all is OK.
If you log first on your system as a root user, try to log first as a non-root user, that can maybe change permissions ! |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sat Mar 01, 2003 7:48 pm Post subject: Re: SCSI Permission Problems |
|
|
Penulci wrote: | I use an external SCSI-Burner and a SCSI Scanner. Both are recognized if I do a cdrecord -scanbus. sane-find-scanner reports my scanner also as present.
I am just allowed to access these devices as root. I played around with the /etc/devfsd.conf in different ways. Butevery other user accept root, no matter if he is in the group, users, cdrw, scan or some or all of them is allowed to access. I found no satisfying solution searching the forums. |
Check the permissions on the devices (not the links pointing on them).
My external cdwriter for example is /dev/cdroms/cdrom1, which is just a symlink.
Code: | # l /dev/cdroms/cdrom1
lr-xr-xr-x 1 root root 34 Jan 1 1970 /dev/cdroms/cdrom1 -> ../scsi/host0/bus0/target4/lun0/cd |
Your user has to have both, read and write permissions on the device. I do this through group cdrom.
Code: | l /dev/scsi/host0/bus0/target4/lun0/cd
brw-rw---- 1 root cdrom 11, 0 Jan 1 1970 /dev/scsi/host0/bus0/target4/lun0/cd |
You can simply chmod the device or do this through devfs (which is little more complicated). _________________ Computer games don't affect kids. I mean if Pacman affected us as kids, we'd all be running around in darkened rooms, munching pills and listening to repetitive music. |
|
Back to top |
|
|
Penulci Tux's lil' helper
Joined: 12 Jun 2002 Posts: 119 Location: Vienna, Austria
|
Posted: Sun Mar 02, 2003 1:36 pm Post subject: |
|
|
Thanks a lot. It was really a problem of the permissions. My scanner is working now. The funny thing is my writer does not even allow me access as root. I know it is present. cat/proc/scsi/scsi shows me:
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: PLEXTOR Model: CD-R PX-R412C Rev: 1.07
Type: CD-ROM ANSI SCSI revision: 02
If I try to run e.g cdrecord -copy -d 0,4,0 as root I get cdrecord: No such file or directory. No read access for '0,4,0'. as output.
No matter if I set the permissions for /dev/scsi/host0/bus0/target4/lun0/generic to 600, 660, 666 or even 777.
greetings Penulci |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sun Mar 02, 2003 4:16 pm Post subject: |
|
|
Penulci wrote: | No matter if I set the permissions for /dev/scsi/host0/bus0/target4/lun0/generic to 600, 660, 666 or even 777. |
Your cdwriter should be /dev/scsi/host0/bus0/target4/lun0/cd.
If you don't have the device, i assume you don't have sr_mod (the scsi cdrom module) loaded or compiled into your kernel. _________________ Computer games don't affect kids. I mean if Pacman affected us as kids, we'd all be running around in darkened rooms, munching pills and listening to repetitive music. |
|
Back to top |
|
|
Penulci Tux's lil' helper
Joined: 12 Jun 2002 Posts: 119 Location: Vienna, Austria
|
Posted: Sun Mar 02, 2003 8:54 pm Post subject: |
|
|
I assumed this could be the problem too. But the module is compiled into the kernel and lsmod shows sr_mod is present.
/dev/scsi/host0/bus0/target4/lun0/cd is also present. By default it has permissions 660 and belongs to owner root and group cdrom. root and may user are members of the group cdrom but nevertheless no matter how I change groups or permissions I must not acces my cdwriter neither as root nor as user.
Per default my /dev/sg1 shows to /dev/scsi/host0/bus0/target4/lun0/generic
Greetings Penulci |
|
Back to top |
|
|
|