[sane-devel] Advice on accessing my Parallel Port scanner as a normal user

Mark C gen-lists@blueyonder.co.uk
24 Nov 2002 12:55:11 +0000


Hi, 

Sorry to ask this question, as I'm sure it been asked thousands of times
before.
I have checked the archives and found a few answers, but I'm still
having problems, connecting to my Mustek 600CP scanner as a normal user.

Heres my setup:

RedHat 8.0
sane-1.0.9 patched with the mustek_pp-11.alpha driver
xsane-0.89
Kernel-2.4.18

The scanner is a parallel one and is the only device on this port.

I have commented out all references to other scanners in
/etc/sane.d/dll.conf except for:

mustek
mustek_pp
mustek_usb

As for some strange reason it was picking up my Wintv card as a scanning
device..

Running as root the scanner and xsane works great:


[root@stimpy mark]# SANE_DEBUG_MUSTEK_PP=1 scanimage -L
[sanei_debug] Setting debug level of mustek_pp to 1.
device `mustek_pp:Mustek-600CP' is a Mustek 600CP flatbed scanner

I have also read the documentation on:
http://www.penguin-breeder.org/?page=sane-net#faq

So a normal user can connect to my scanner, but this still fails.

I have added the following to /etc/services:

sane     6566/tcp saned   # SANE network scanner daemon

and also added an /etc/xinetd.conf/saned

service sane

{
  socket_type = stream
  server = /usr/sbin/saned
  protocol = tcp
  user = root
  wait = no
  disable = no
}

as on the sane faq page it states this:

However, if you want to use saned to access a parallel port scanner, you
have to replace saned.saned with root in your inetd.conf or user =
saned, group = saned with user = root in your xinetd.conf and you do not
need to change any device access rights.

also telenting to it as root works, just I still cannot access it as a
normal user running:

scanimage -L

-- 
Eagles may soar..
But weasels don't get sucked into jet engines...