Brak usb

Łukasz Maśko masko w ipipan.waw.pl
Wto, 22 Lis 2005, 20:18:27 CET


Dnia wtorek, 22 listopada 2005 18:43, Grzegorz Pietrzak napisał:
[...]
> W celach testowych uruchomiłem saned z prawmi root-a i zaczęło działać
> więc to tylko uprawnienia...
> I gdzie mam szukać błędu?!?...

Zastopuj inetd (/etc/init.d/rc-inetd stop) i odpal ręcznie saneda na jego 
prawach z debugiem (sudo -u saned "/usr/sbin/saned -d256") i spróbuj 
zeskanować coś, ewentualnie wykryć skaner. Może to ci coś podpowie. Przy 
okazji podeślij to tutaj. U mnie zapuszczenie scanimage -L z komputera w 
sieci daje w tej sytuacji taki efekt:

$ sudo -u saned saned -d256
[saned] main: starting debug mode (level 256)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv6
[saned] main: [0] setsockopt ()
[saned] main: [0] bind () to port 6566
[saned] main: [0] listen ()
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] bind failed: Address already in use
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.16 ready
[saned] check_host: detected an IPv4-mapped address
[saned] check_host: access by remote host: ::ffff:10.0.0.8
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: ciri
[saned] check_host: local hostname(s) (from DNS): ciri.ed.pl
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: can't open config file: /etc/hosts.equiv (No such file 
or directory)
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# saned.conf'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The contents of the saned.conf  
file  is  a  list  of  host  names,  IP'
[saned] check_host: config file line: `# addresses or IP subnets (CIDR 
notation) that are permitted to use local'
[saned] check_host: config file line: `# SANE devices. IPv6 addresses must 
be enclosed in brackets,  and  should'
[saned] check_host: config file line: `# always  be specified in their 
compressed form.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The hostname matching is not 
case-sensitive.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `#scan-client.somedomain.firm'
[saned] check_host: config file line: `#192.168.0.1'
[saned] check_host: config file line: `#192.168.0.1/29'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]/64'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# NOTE: /etc/inetd.conf 
(or /etc/xinetd.conf) and'
[saned] check_host: config file line: `# /etc/services must also be properly 
configured to start'
[saned] check_host: config file line: `# the saned daemon as documented in 
saned(1), services(4)'
[saned] check_host: config file line: `# and inetd.conf(4) (or 
xinetd.conf(5)).'
[saned] check_host: config file line: `127.0.0.1'
[saned] check_host: DNS lookup returns IP address: 127.0.0.1
[saned] check_host: DNS lookup returns IP address: 127.0.0.1
[saned] check_host: DNS lookup returns IP address: 127.0.0.1
[saned] check_host: config file line: `10.0.0.1/24'
[saned] check_host: subnet with base IP = 10.0.0.1, CIDR netmask = 24
[saned] check_host: access granted from IP address 10.0.0.8 (in subnet 
10.0.0.1/24)
[saned] init: access granted
[saned] init: access granted to ed@::ffff:10.0.0.8
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 10
[saned] quit: exiting

Jeśli nie pomoże, to następnym krokiem będzie sudo -u saned strace saned -d, 
może to coś pomoże.
-- 
Łukasz Maśko                                           GG:   2441498    _o)
Lukasz.Masko(at)ipipan.waw.pl                         ICQ: 146553537    /\\
Registered Linux User #61028              JID: paranoid w jabberpl.org   _\_V



Więcej informacji o liście dyskusyjnej pld-users-pl