kopia lustrzana https://gitlab.com/sane-project/website
63 wiersze
3.1 KiB
HTML
63 wiersze
3.1 KiB
HTML
|
<!-- received="Sun Sep 14 19:55:46 1997 MST" -->
|
||
|
<!-- sent="Mon, 15 Sep 1997 00:45:53 +0200 (MET DST)" -->
|
||
|
<!-- name="becka@sunserver1.rz.uni-duesseldorf.de" -->
|
||
|
<!-- email="becka@sunserver1.rz.uni-duesseldorf.de" -->
|
||
|
<!-- subject="Re: "Permission denied" on /dev/sga under linux?" -->
|
||
|
<!-- id="m0xANQQ-000BWYC@charon.beck-sw.de" -->
|
||
|
<!-- inreplyto="19970914174115.07483@tarsier.colo.erols.net" -->
|
||
|
<title>sane-devel: Re: "Permission denied" on /dev/sga under linux?</title>
|
||
|
<h1>Re: "Permission denied" on /dev/sga under linux?</h1>
|
||
|
<a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de"><i>becka@sunserver1.rz.uni-duesseldorf.de</i></a><br>
|
||
|
<i>Mon, 15 Sep 1997 00:45:53 +0200 (MET DST)</i>
|
||
|
<p>
|
||
|
<ul>
|
||
|
<li> <b>Messages sorted by:</b> <a href="date.html#187">[ date ]</a><a href="index.html#187">[ thread ]</a><a href="subject.html#187">[ subject ]</a><a href="author.html#187">[ author ]</a>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0188.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek problems in lineart mode"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0186.html">Michael Ritzert: "Re: mustek problems in lineart mode"</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|
||
|
<!-- body="start" -->
|
||
|
<i>> I recently rebuilt my kernel and found that I can't access the scsi-generic</i><br>
|
||
|
<i>> device for the HP4C scanner. The scanner probes properly, but even as root</i><br>
|
||
|
<i>> any access to the /dev/sga device gives "Permission denied" and thus </i><br>
|
||
|
<i>> xscanimage can't open it, even as root. </i><br>
|
||
|
<p>
|
||
|
<i>> pcmcia scsi interface. It all used to work perfectly, and I've been unable</i><br>
|
||
|
<i>> to figure out what changed between then and now. :( </i><br>
|
||
|
Have you upgraded the kernel ?<br>
|
||
|
<p>
|
||
|
<i>> Does anyone know if there is some circumstance under which the linux </i><br>
|
||
|
<i>> scsi-generic driver will give "permission denied" even to root? </i><br>
|
||
|
Let's see linux/drivers/scsis/sg.c :<br>
|
||
|
<p>
|
||
|
if (O_RDWR!=(flags & O_ACCMODE))<br>
|
||
|
return -EACCES; <br>
|
||
|
<p>
|
||
|
Probably improbable. I assume sane will open RW. But check it with strace.<br>
|
||
|
This is the only place I spotted where EACCES is returned. Maybe I missed<br>
|
||
|
something.<br>
|
||
|
<p>
|
||
|
CU,Andy<br>
|
||
|
<p>
|
||
|
<pre>
|
||
|
--
|
||
|
Andreas Beck | Email : <<a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de">becka@sunserver1.rz.uni-duesseldorf.de</a>>
|
||
|
======== GGI - The Right Thing To Do : <a href="http://synergy.foo.net/~ggi/">http://synergy.foo.net/~ggi/</a> ========
|
||
|
<p>
|
||
|
<pre>
|
||
|
--
|
||
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
||
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
||
|
</pre>
|
||
|
<!-- body="end" -->
|
||
|
<p>
|
||
|
<ul>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0188.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek problems in lineart mode"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0186.html">Michael Ritzert: "Re: mustek problems in lineart mode"</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|