El Lun 04 Nov 2002 19:08, escribi�:
> I have astra 2000P got working after installing sane-backends-1.0.9 tar
> file. Now it works only as root. When I set +s to scanimage and use as
> user, I get following error.
> [lvgandhi@localhost lvgandhi]$ scanimage --format out.tiff
> [umax_pp_low] SendWord failed got 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:2588)
> [umax_pp_low] Blindly going on .....
> [umax_pp_low] SendData failed got 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:3237)
> [umax_pp_low] Blindly going on .....
> [umax_pp_low] SendWord failed got 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:2588)
> [umax_pp_low] Blindly going on .....
> [umax_pp_low] SendData failed got 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:3237)
> [umax_pp_low] Blindly going on .....
> [umax_pp_low] SendWord failed got 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:2588)
> [umax_pp_low] Blindly going on .....
> [umax_pp_low] Unexpected reg19: 0xE8 instead of 0xC0 or 0xD0
> (umax_pp_low.c:3283)
> [umax_pp_low] CmdSetDataBuffer(initbuf) failed ! (umax_pp_low.c:5251)
> scanimage: no SANE devices found
>
> For xscanimage I get the following error
> xscanimage umax_pp:0x378
>
> Gtk-WARNING **: This process is currently running setuid or setgid.
> This is not a supported use of GTK+. You must create a helper
> program instead. For further details, see:
>
> http://www.gtk.org/setuid.html
>
> Refusing to initialize GTK+.
> How to make it work both as user?
This is what developers said: "Note that the backend needs to run as root. To
allow user access to the scanner run the backend through the network
interface (See saned(1) and sane-net(5)). A more relaxed solution (security
wise) is to add suid bit to the fron� tend (See chmod(1)). The backend drop
root priviledges as soon as it can, right after gaining direct access to
IO ports."
Also, Stef Voltz tell me:
"Try usin gthe ppdev mode. With latest version, you may launch xsane as:
xsane umax_pp:/dev/parport0 , and then run as normal user. Provided
that
ppdev device is usable by user, and exists in MDK 8.2 (which should be the
case).
Also, you may edit umax_pp.conf in /usr/local/etc/sane.d to have a
'port'
option which points to /dev/parport0. Here's an excerpt from my umax_pp.conf:
....
# DEVICES #
# specify the port your scanner is connected to. Possible are 0x378 (lp0)
# 0x278 (lp1)
#port 0x378
port /dev/parport0
# the following options are local to this scanner"
You can contact Stef (developer) at [EMAIL PROTECTED]
Suerte.
--
Pilag�
GNU/Linux Mandrake 9.0
11:04pm up 37 min, 2 users, load average: 0.05, 0.06, 0.00
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com