Thanks to:
Tom Webster <webster_at_ssdpdc.mdc.com>
Arnaud Valeix <fnet_at_ifh.sncf.fr>
Mats Akerberg <mats_at_decus.se>
Kai Grunau <kgrunau_at_ifm.uni-kiel.de>
Apparently, I am not losing my mind and the documentation I had from a
Usenix session was wrong. Here is the answer.
thanks
beckers
---------- Forwarded message ----------
Date: Wed, 26 Feb 1997 20:50:48 -0800
From: Tom Webster <webster_at_ssdpdc.mdc.com>
To: beckers_at_josephus.furph.com
Subject: Re: tcp wrappers/4.0/telnet
Becki,
> I've installed tcp wrappers on my DU4.0 system. I followed the
> instructions and added this for ftp:
> ftp stream tcp nowait root /usr/local/etc/tcpd
> /usr/sbin/ftpd
> ftpd
Wrong, if it works it is an accident.
> I changed it so the line reads:
>
> telnet stream tcp nowait root /usr/local/etc/tcpd
> /usr/sbin/telnetd
>
> but what am I doing wrong? shouldn't telnet be the same as ftp? have I
> lost my mind? are the instructions wrong?
Your last entry of telnet is correct. The syntax for inetd.conf is from the man
page:
ServiceName SocketType ProtocolName Wait/NoWait UserName ServerPath ServerArgs
The ServerArgs parameter specifies the command line arguments that the inetd
daemon should use to execute the server. These arguments begin with the name of
the server used. The tcpd wrapper bends this (more than a little), and uses the
server args as a method of specifing the server to be run, including the full
path. If you don't remove the secondary entry (the one without the path) when you
add the wrapper entry, inetd will pass it on to the daemon as a command line
parameter.
The syntax for inetd.conf when using tcpd looks more like:
ServiceName SocketType ProtocolName Wait/NoWait UserName TcpdPath ServerPath ServerArgs
Where TcpdPath and ServerPath are the full path (and name) of tcpd and the server.
The definition of ServerArgs changes back to what youwould expect, just the argumanets
you want to pass o the server.
You haven't lost your mind,
Tom
--
+--------------------------------+------------------------------+
| Tom Webster | "Funny, I've never seen it |
| SysAdmin MDA-SSD ISS-IS-HB-S&O | do THAT before...." |
| webster_at_ssdpdc.mdc.com | - Any user support person |
+--------------------------------+------------------------------+
| Unless clearly stated otherwise, all opinions are my own. |
+---------------------------------------------------------------+
Received on Thu Feb 27 1997 - 18:39:37 NZDT