[sane-devel] xinetd fails to start saned

Terry Spearman tnspearman at twc.com
Mon Feb 11 19:17:13 GMT 2019


I can scan on the network if I run saned on the server  first.  After the
scan, saned bails out, and I have to run saned on the server again if I want
to do a second scan.  My understanding is that xinetd is supposed to load
saned and keep it running in the background listening for scanner requests.
Following the recommendations in
http://www.sane-project.org/man/saned.8.html,

I have added the following to /etc/xinetd.conf:



# default = off

# description: The sane server accepts requests

# for network access to a local scanner via the network

service sane-port

{

        port        = 6566

        socket_type = stream

        wait        = no

        user        = saned

        group       = saned

        server      = /usr/sbin/saned

}



Checking the status of xinetd I see:



$ systemctl status xinetd -l

● xinetd.service - Xinetd A Powerful Replacement For Inetd

   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor
preset: enabled)

   Active: active (running) since Mon 2019-02-11 13:31:04 EST; 1min 46s ago

  Process: 6974 ExecStart=/usr/sbin/xinetd -stayalive -pidfile
/var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)

Main PID: 6982 (xinetd)

   CGroup: /system.slice/xinetd.service

           └─6982 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid



Feb 11 13:31:04 server xinetd[6982]: removing discard

Feb 11 13:31:04 server xinetd[6982]: removing echo

Feb 11 13:31:04 server xinetd[6982]: removing echo

Feb 11 13:31:04 server xinetd[6982]: removing tcpmux

Feb 11 13:31:04 server xinetd[6982]: removing time

Feb 11 13:31:04 server xinetd[6982]: removing time

Feb 11 13:31:04 server xinetd[6982]: bind failed (Permission denied (errno =
13)). service = sane-port

Feb 11 13:31:04 server xinetd[6982]: Service sane-port failed to start and
is deactivated.

Feb 11 13:31:04 server xinetd[6982]: xinetd Version 2.3.15 started with
libwrap loadavg labeled-networking options compiled in.

Feb 11 13:31:04 server xinetd[6982]: Started working: 0 available services



I changed the group of /usr/bin/saned  to saned and the permissions to 777:



ls -l /usr/sbin/saned

-rwxrwxrwx. 1 root saned 48552 Oct 30 12:46 /usr/sbin/saned



I still get the same message when I run systemctl status xinetd



Any suggestions/help greatly appreciated

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20190211/03053307/attachment.html>


More information about the sane-devel mailing list