Re: Two things

Koos van den Hout <[email protected]> Fri, 28 Feb 2003 11:40:37 +0100
Newsgroups gmane.network.ftp.wuftpd.user
Organization Van den Hout Creative Communications
Message-ID <[email protected]>
Quoting Bob Luckin who wrote on Thu, Feb 27, 2003 at 07:27:29PM -0600:

> Ah; I didn't notice anything in your original email about using tcpwrappers.
> I'll leave this for someone more expert in this area to comment on, then.

> > > > ftp            stream  tcp     nowait  root    /usr/local/sbin/in.ftpd in.ftpd in.ftpd -laI
> > > >
> > > > in the inetd.conf. When I run /usr/local/sbin/in.ftpd- laIS it works fine.
> > >
> > > Unless NetBSD's inetd.conf is different from Solaris', I think you have
> > > "in.ftpd" repeated one too many times...
> > 
> > I understand your comment, but this is how one is SUPPOSED to setup
> > inetd.conf when using tcpwrappers (according to Weiste). This is how all
> > the other entries (default ones) are setup as well.

From the README file with tcp_wrappers:

There are two ways to use the wrapper programs:

1) The easy way: move network daemons to some other directory and fill
   the resulting holes with copies of the wrapper programs.  This
   approach involves no changes to system configuration files, so there
   is very little risk of breaking things.

2) The advanced way: leave the network daemons alone and modify the
   inetd configuration file.  For example, an entry such as:

     tftp  dgram  udp  wait  root  /usr/etc/tcpd  in.tftpd -s /tftpboot

so either you have

[inetd flags] /usr/local/sbin/in.ftpd in.ftpd -laI

and an in.ftpd in a special dir and /usr/local/sbin/in.ftpd pointing at
tcpd

OR

[inetd flags] /usr/local/sbin/tcpd in.ftpd -laI

making tcpd get in.ftpd as argv[0] and taking that hint to start in.ftpd.

                                           Koos

-- 
Koos van den Hout,           PGP keyid RSA/1024 0xCA845CB5 via keyservers
[email protected]        or DSS/1024 0xF0D7C263                        -?)
Fax +31-30-2817051              Visit the site about books with reviews    /\\
http://idefix.net/~koos/                http://www.virtualbookcase.com/   _\_V
signature.asc (application/pgp-signature, 248 B)
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: Weznoa6hyo4PLYRpmeh7deDMQ19jUEIV

iQA/AwUBPl88pCxmO13w18JjEQIZtgCgp//VEeMt53pb3aWixeF5i6Uo4NEAnR8z
ugKNxaLYQ0dFmvkOhxICSnn9
=gAVc
-----END PGP SIGNATURE-----