[sane-devel] Permissions problem with Epson 1640 & Solaris
Karl Heinz Kremer
Wed, 27 Mar 2002 18:43:47 -0500
Content-Type: text/plain; charset=us-ascii
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
On Wed, Mar 27, 2002 at 06:37:30PM +0100, Henning Meier-Geinitz wrote:
> 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=
> This means that access to the device is possible (inquiry was sent).
> > 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=
> > 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=
> > gorthaur:elijah 13:40 ~ > /opt/pd/bin/scanimage -d epson:/dev/scsi/proc=
> > scanimage: sane_start: Error during device I/O
> Bye the way, this would output the image data on stdout.
> > 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 =
> > should....
> 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.
> Anyway you could try to add your user to group scanner to check if
> that's the problem.
> I'm a bit surprised that an IO error occurs and not an "access denied".
> You could try something like:
> SANE_DEBUG_EPSON=3D255 scanimage -d epson:/dev/scsi/processor/c1t5d0 >pnm=
> 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.
> Sane-devel mailing list
Karl Heinz Kremer firstname.lastname@example.org
PGP Key at http://www.khk.net/download/khk.asc
EPSON Sane Backend: http://www.khk.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----