Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2009 07:27:06 -0500
From:      stan <stanb@panix.com>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Cc:        Stewart Flood <sff@ivo.net>
Subject:   Re: inetd.conf entry for saned?
Message-ID:  <20090101122706.GA13049@teddy.fas.com>
In-Reply-To: <20081231212520.GA28385@teddy.fas.com>
References:  <20081231212520.GA28385@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 31, 2008 at 04:25:20PM -0500, stan wrote:
> I seem to be having an inrdinate amount of trouble getting a working
> inetd.conf entry for saned on 7.1 
> 
> If I run saned from the command line, I can connect and scan. But I cannot
> seem to amke it work from inetd Here is what I have:
> 
> sane-port  stream  tcp  nowait          saned    /usr/local/sbin/saned saned
> 
> Yes, I created a user for saned. although I am suprsied that the port did
> not do that. When I start inetd with the -d flag, I get:
> 
> black# inetd -d
> ADD : sane-port proto=tcp accept=1 max=0 user=saned
> group=(null)class=daemon builtin=0x0 server=/usr/local/sbin/saned policy=""
> inetd: sane-port/tcp: ipsec initialization failed; in entrust
> inetd: sane-port/tcp: ipsec initialization failed; out entrust
> inetd: enabling sane-port, fd 4
> inetd: registered /usr/local/sbin/saned on 4
> 
> What file do I add this line to?
> 
For the record, here is wgat I woulnd up with, and it appears to work. In
/etc/inetd.conf I have:

sane-port  stream  tcp  nowait          saned   /usr/local/sbin/saned saned

Which is what I had, but what I was missing is TCP Wrappers, which are
configuered (much to my suprise) in /etc/hosts.allow, that is where this
line needed to go:

sane-port proto=tcp accept=1 max=0 user=saned group=(null)class=daemon builtin=0
x0 server=/usr/local/sbin/saned policy=""

Having been doing this a long time, altjough never having dealt with TCP
Wrappers in the past, I recall this file having a somewhat different
purpose in the pat, so I thought it was just a leagcy file.

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090101122706.GA13049>