Re: "Permission denied" on /dev/sga under linux?

becka@sunserver1.rz.uni-duesseldorf.de
Mon, 15 Sep 1997 00:45:53 +0200 (MET DST)

> I recently rebuilt my kernel and found that I can't access the scsi-generic
> device for the HP4C scanner. The scanner probes properly, but even as root
> any access to the /dev/sga device gives "Permission denied" and thus
> xscanimage can't open it, even as root.

> pcmcia scsi interface. It all used to work perfectly, and I've been unable
> to figure out what changed between then and now. :(
Have you upgraded the kernel ?

> Does anyone know if there is some circumstance under which the linux
> scsi-generic driver will give "permission denied" even to root?
Let's see linux/drivers/scsis/sg.c :

if (O_RDWR!=(flags & O_ACCMODE))
return -EACCES;

Probably improbable. I assume sane will open RW. But check it with strace.
This is the only place I spotted where EACCES is returned. Maybe I missed
something.

CU,Andy

-- 
Andreas Beck              |  Email :  <becka@sunserver1.rz.uni-duesseldorf.de>
========  GGI - The Right Thing To Do : http://synergy.foo.net/~ggi/  ========

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com