Your message dated Mon, 14 Mar 2005 23:24:36 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#299281: SANED daemon: strange behaviour when launching
saned without root access
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 13 Mar 2005 09:28:37 +0000
>From [EMAIL PROTECTED] Sun Mar 13 01:28:37 2005
Return-path: <[EMAIL PROTECTED]>
Received: from postfix3-2.free.fr [213.228.0.169]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DAPOm-0001YX-00; Sun, 13 Mar 2005 01:28:36 -0800
Received: from [192.168.1.11] (lns-p19-10-idf-82-65-179-27.adsl.proxad.net
[82.65.179.27])
by postfix3-2.free.fr (Postfix) with ESMTP id 24916C183;
Sun, 13 Mar 2005 10:28:35 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
Date: Sun, 13 Mar 2005 10:28:34 +0100
From: Jean Marc LACROIX <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.5) Gecko/20050105
Debian/1.7.5-1 StumbleUpon/1.999
X-Accept-Language: fr
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: SANED daemon: strange behaviour when launching saned without root
access
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: sane-utils
Version: 1.0.15-7
Severity: important
I am using saned on a network.
My test use one server (obiwan) with saned daemon and one client
(d2r2) with scanimage application. Xinet, services, IP traffic,
all is ok.
My network is on 192.168.0.0/16 so the file saned.conf on
server is as follow.
Please note also that host obiwan use ip aliasing
----server config -----
[EMAIL PROTECTED]:~]
-> dpkg -l |grep sane
ii libsane 1.0.15-7 API library for scanners
ii sane 1.0.13-2 scanner graphical frontends
ii sane-utils 1.0.15-7 API library for scanners -- utilities
[EMAIL PROTECTED]:~]
-> cat /etc/sane.d/saned.conf
192.168.0.0/16
-----client config ------
[EMAIL PROTECTED]:~]
-> dpkg -l |grep sane
ii libsane 1.0.15-7 API library for scanners
ii sane 1.0.13-2 scanner graphical frontends
ii sane-utils 1.0.15-7 API library for scanners -- utilities
ii xsane 0.97-3 GTK+-based X11 frontend for SANE
(Scanner Ac
ii xsane-common 0.97-3 GTK+-based X11 frontend for SANE
(Scanner Ac
[EMAIL PROTECTED]:~]
-> cat /etc/sane.d/saned.conf
192.168.0.0/16
TEST 1: KO (because no scanner detected)
-----------------------------------------
server obiwan
[EMAIL PROTECTED]:~]
-> saned -d123
[saned] main: starting debug mode (level 123)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv6
[saned] main: [0] socket failed: Address family not supported by protocol
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] listen ()
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.15 ready
[saned] check_host: access by remote host: 192.168.1.1
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: obiwan
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: config file line: `+ vador'
[saned] check_host: getaddrinfo for `+ vador' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ luke'
[saned] check_host: getaddrinfo for `+ luke' failed: Name or service not
known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ syspeo'
[saned] check_host: getaddrinfo for `+ syspeo' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ padawan'
[saned] check_host: getaddrinfo for `+ padawan' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `192.168.0.0/16'
[saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 16
[saned] check_host: access granted from IP address 192.168.1.1 (in
subnet 192.168.0.0/16)
[saned] init: access granted
[saned] init: access granted to [EMAIL PROTECTED]
[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
--------------------------------------
and on client side....
[EMAIL PROTECTED]:~]
-> scanimage -f "scanner number <%i> device <%d> is a <%t> model <%m>
produced by <%v>\n"
[sanei_debug] Setting debug level of net to 1.
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from
sane-backends 1.0.15
[net] add_device: adding backend /dev/scanner
[net] add_device: error while getting address of host /dev/scanner: Name
or service not known
[net] add_device: adding backend srvscanner
[net] sane_exit: exiting
TEST 2: OK (because scanner detected)
-------------------------------------
This is the same test, but saned is run via sudo in order to have root
access
[EMAIL PROTECTED]:~]
-> sudo saned -d123
[saned] main: starting debug mode (level 123)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv6
[saned] main: [0] socket failed: Address family not supported by protocol
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] listen ()
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.15 ready
[saned] check_host: access by remote host: 192.168.1.1
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: obiwan
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: config file line: `+ vador'
[saned] check_host: getaddrinfo for `+ vador' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ luke'
[saned] check_host: getaddrinfo for `+ luke' failed: Name or service not
known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ syspeo'
[saned] check_host: getaddrinfo for `+ syspeo' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ padawan'
[saned] check_host: getaddrinfo for `+ padawan' failed: Name or service
not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `192.168.0.0/16'
[saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 16
[saned] check_host: access granted from IP address 192.168.1.1 (in
subnet 192.168.0.0/16)
[saned] init: access granted
[saned] init: access granted to [EMAIL PROTECTED]
[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
and on client side.....
[EMAIL PROTECTED]:~]
-> scanimage -f "scanner number <%i> device <%d> is a <%t> model <%m>
produced by <%v>\n"
[sanei_debug] Setting debug level of net to 1.
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from
sane-backends 1.0.15
[net] add_device: adding backend /dev/scanner
[net] add_device: error while getting address of host /dev/scanner: Name
or service not known
[net] add_device: adding backend srvscanner
[net] sane_exit: exiting
scanner number <0> device <net:srvscanner:hp:/dev/scanner> is a <flatbed
scanner> model <C5110A> produced by <Hewlett-Packard>[EMAIL PROTECTED]:~]
As you can see, the answer is now correct, because i have a such scanner
on obiwan host.
The 2 sequences are the same, and i have made a ethereal on tcp
connection. There is only one difference in last tcp transaction from
obiwan to client d2r2 before closing the connection, this is of course
about the string on scanner identification.
It seems the problem is on server side.
The problem is important, because it is not possible to run saned via
xinetd without root access.
Best Regards
--
--------------------------------------
-- Jean-Marc LACROIX --
-- mailto : [EMAIL PROTECTED] --
---------------------------------------
---------------------------------------
Received: (at 299281-done) by bugs.debian.org; 14 Mar 2005 22:25:28 +0000
>From [EMAIL PROTECTED] Mon Mar 14 14:25:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from sardaukar.technologeek.org (frigate.technologeek.org)
[213.41.134.11]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DAy07-0003yq-00; Mon, 14 Mar 2005 14:25:27 -0800
Received: by frigate.technologeek.org (Postfix, from userid 1000)
id 5E9391477A01; Mon, 14 Mar 2005 23:24:36 +0100 (CET)
To: Jean Marc LACROIX <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: Bug#299281: SANED daemon: strange behaviour when launching
saned without root access
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
From: Julien BLACHE <[EMAIL PROTECTED]>
Date: Mon, 14 Mar 2005 23:24:36 +0100
In-Reply-To: <[EMAIL PROTECTED]> (Jean Marc LACROIX's message of
"Mon, 14 Mar 2005 21:51:39 +0100")
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Jean Marc LACROIX <[EMAIL PROTECTED]> wrote:
Hi Jean Marc,
> Many thanks for your help Julien, !!!!! and for your doc !!!
>
> The bug is due to a bad file access on /dev/scanner
> -> ls -altrL /dev/scanner
> crw------- 1 root root 21, 0 2002-03-14 22:51 /dev/scanner
Glad the doc helped you :)
> so you can close this bug ( not a bug!!!)
Done :)
JB.
--
Julien BLACHE - Debian & GNU/Linux Developer - <[EMAIL PROTECTED]>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]