From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810562.tru64-unix-managers.marc@archive.invalid> From: Becki Kain Date: Thu, 27 Feb 1997 17:20:57 +0000 To: tru64-unix-managers Subject: [S] tcp wrappers/4.0/telnet (fwd) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810562 Thanks to: Tom Webster Arnaud Valeix Mats Akerberg Kai Grunau 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 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. | +---------------------------------------------------------------+