tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Becki Kain <beckers () josephus ! furph ! com>
To: tru64-unix-managers
Subject: [S] tcp wrappers/4.0/telnet (fwd)
Date: Thu, 27 Feb 1997 17:20:57 +0000	[thread overview]
Message-ID: <96078608810562.tru64-unix-managers.marc@archive.invalid> (raw)


Thanks to:

Tom Webster <webster@ssdpdc.mdc.com>
Arnaud Valeix <fnet@ifh.sncf.fr>
Mats Akerberg <mats@decus.se>
Kai Grunau <kgrunau@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@ssdpdc.mdc.com>
To: beckers@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@ssdpdc.mdc.com         | - Any user support person    |
+--------------------------------+------------------------------+
|   Unless clearly stated otherwise, all opinions are my own.   |
+---------------------------------------------------------------+

                 reply	other threads:[~1997-02-27 17:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox