[sane-devel] Permissions problem with Epson 1640 & Solaris

Karl Heinz Kremer khk@khk.net
Wed, 27 Mar 2002 18:43:47 -0500


--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Henning is right, the EPSON backend does not fork off a reader process.
That the root user can scan is a sure sign that there is something
wrong with the permissions. From your directory listing it looks
like the scanimage process should do a set group ID to the "scanner"
group, which does have read and write access to the device.=20

Are you sure that the user that is running this program is a member
of this group?=20

Karl Heinz


On Wed, Mar 27, 2002 at 06:37:30PM +0100, Henning Meier-Geinitz wrote:
> Hi,
>=20
> On Wed, Mar 27, 2002 at 01:54:47PM +0100, Johan Bengtsson wrote:
> > gorthaur:elijah 13:48 ~ > scanimage -L
> > device `epson:/dev/scsi/processor/c1t5d0' is a Epson Perfection1640 fla=
tbed scanner
>=20
> This means that access to the device is possible (inquiry was sent).
>=20
> > gorthaur:elijah 13:40 ~ > ls -laL /dev/scsi/processor/c1t5d0=20
> > crw-rw----   1 root     scanner  151,   5 Mar 27 12:14  /dev/scsi/proce=
ssor/c1t5d0
> >=20
> > gorthaur:elijah 13:48 ~ > ls -laL /opt/pd/bin/scanimage
> > -rwxr-sr-x   1 root     scanner    119412 Mar  5 12:01 /opt/pd/bin/scan=
image
> >=20
> > gorthaur:elijah 13:40 ~ > /opt/pd/bin/scanimage -d epson:/dev/scsi/proc=
essor/c1t5d0
> > scanimage: sane_start: Error during device I/O
>=20
> Bye the way, this would output the image data on stdout.
>=20
> > It works to scan as root. We have an Umax scanner that is set up with
> > exactly the config (not the same backend of course...) that works like =
it
> > should....
>=20
> My dirst idea was that the epson backend uses fork() for the reader
> process and may lose its sgid permission and umax doesn't use fork().
> However, from a quick grep it looks like it's the other way round.
>=20
> Anyway you could try to add your user to group scanner to check if
> that's the problem.
>=20
> I'm a bit surprised that an IO error occurs and not an "access denied".
> You could try something like:
>=20
> SANE_DEBUG_EPSON=3D255 scanimage -d epson:/dev/scsi/processor/c1t5d0 >pnm=
.out
>=20
> to find out where exactly the error occurs. If you think it's related
> to the SCSI system you can also set SANE_DEBUG_SANEI_SCSI=3D255.
>=20
> Bye,
>   Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel

--=20
Karl Heinz Kremer                                  khk@khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8olkzxejv3RfKrhsRAi/qAJ42e7gDj+0kOnRtOi+Pq/RxJ/JrxACgp3tw
F+i/HioCGV1Jj3s53bwKCog=
=r3t8
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--