Author: randy Date: 2005-03-23 14:43:09 -0700 (Wed, 23 Mar 2005) New Revision: 3573
Added: trunk/patches/inetutils-1.4.2-daemon_fixes-1.patch Modified: trunk/BOOK/basicnet/netprogs/inetutils.xml trunk/BOOK/introduction/welcome/changelog.xml Log: Added a daemon fixes patch, updated build entities and added indexing tags to the Inetutils instructions Modified: trunk/BOOK/basicnet/netprogs/inetutils.xml =================================================================== --- trunk/BOOK/basicnet/netprogs/inetutils.xml 2005-03-23 19:19:56 UTC (rev 3572) +++ trunk/BOOK/basicnet/netprogs/inetutils.xml 2005-03-23 21:43:09 UTC (rev 3573) @@ -7,9 +7,9 @@ <!ENTITY inetutils-download-http "http://gd.tuwien.ac.at/gnu/gnusrc/inetutils/inetutils-&inetutils-version;.tar.gz"> <!ENTITY inetutils-download-ftp "ftp://ftp.gnu.org/gnu/inetutils/inetutils-&inetutils-version;.tar.gz"> <!ENTITY inetutils-md5sum "df0909a586ddac2b7a0d62795eea4206"> - <!ENTITY inetutils-size "1019 KB"> - <!ENTITY inetutils-buildsize "13 MB"> - <!ENTITY inetutils-time "0.30 SBU"> + <!ENTITY inetutils-size "1.04 MB"> + <!ENTITY inetutils-buildsize "10.2 MB"> + <!ENTITY inetutils-time "0.26 SBU"> ]> <sect1 id="inetutils" xreflabel="Inetutils-&inetutils-version;"> @@ -19,6 +19,8 @@ </sect1info> <?dbhtml filename="inetutils.html"?> <title>Inetutils-&inetutils-version;</title> +<indexterm zone="inetutils"> +<primary sortas="a-Inetutils">Inetutils</primary></indexterm> <sect2> <title>Introduction to <application>Inetutils</application></title> @@ -45,6 +47,9 @@ <listitem><para>Required Patch: <ulink url="&patch-root;/inetutils-&inetutils-version;-kernel_headers-1.patch"/></para> </listitem> +<listitem><para>Required Patch: <ulink +url="&patch-root;/inetutils-&inetutils-version;-daemon_fixes-1.patch"/></para> +</listitem> </itemizedlist> </sect3> @@ -52,7 +57,7 @@ <sect4><title>Optional</title> <para><xref linkend="Linux_PAM"/>, <xref linkend="tcpwrappers"/>, -<ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink> and +<ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>, and <xref linkend="heimdal"/> or <xref linkend="mitkrb"/></para> </sect4> </sect3> @@ -66,12 +71,16 @@ commands:</para> <screen><userinput><command>patch -Np1 -i ../inetutils-&inetutils-version;-kernel_headers-1.patch && +patch -Np1 -i ../inetutils-&inetutils-version;-daemon_fixes-1.patch && ./configure --prefix=/usr --libexecdir=/usr/sbin \ --sysconfdir=/etc --localstatedir=/var \ --mandir=/usr/share/man --infodir=/usr/share/info \ --disable-logger --disable-syslogd && -make && -make install && +make</command></userinput></screen> + +<para>Now, as the root user:</para> + +<screen><userinput role='root'><command>make install && mv /usr/bin/ping /bin</command></userinput></screen> </sect2> @@ -114,82 +123,113 @@ <sect2> <title>Contents</title> -<para>The <application>Inetutils</application> package contains network clients -and servers.</para> +<para>A list of the installed programs not included here, along with their +short descriptions can be found at +<ulink url="&lfs-root;/chapter06/inetutils.html#contents-inetutils"/>.</para> -</sect2> +<segmentedlist> +<segtitle>Installed Programs</segtitle> +<segtitle>Installed Libraries</segtitle> +<segtitle>Installed Directories</segtitle> -<sect2><title>Description</title> +<seglistitem> +<seg>ftpd, inetd, rexecd, rlogind, rshd, talkd, telnetd, tftpd, uucpd and +whois</seg> +<seg>None</seg> +<seg>None</seg> +</seglistitem> +</segmentedlist> -<sect3><title>ftp</title> -<para><command>ftp</command> is an ARPANET file transfer client.</para></sect3> +<variablelist> +<bridgehead renderas="sect3">Short Descriptions</bridgehead> +<?dbfo list-presentation="list"?> -<sect3><title>logger</title> -<para><command>logger</command> make entries in the system log.</para></sect3> +<varlistentry id="ftpd-inetutils"> +<term><command>ftpd</command></term> +<listitem><para>is a <acronym>DARPA</acronym> Internet File Transfer Protocol +server.</para> +<indexterm zone="inetutils ftpd-inetutils"> +<primary sortas="b-ftpd">ftpd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>ping</title> -<para><command>ping</command> sends <acronym>ICMP</acronym> ECHO_REQUEST -packets to network hosts.</para></sect3> +<varlistentry id="inetd"> +<term><command>inetd</command></term> +<listitem><para>is an Internet super-server. Note that the +<xref linkend="xinetd"/> package provides a much better server that does +the same thing.</para> +<indexterm zone="inetutils inetd"> +<primary sortas="b-inetd">inetd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>rcp</title> -<para><command>rcp</command> is a remote file copy client.</para></sect3> +<varlistentry id="rexecd-inetutils"> +<term><command>rexecd</command></term> +<listitem><para>is a remote execution server.</para> +<indexterm zone="inetutils rexecd-inetutils"> +<primary sortas="b-rexecd">rexecd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>rlogin</title> -<para><command>rlogin</command> is a remote login client.</para></sect3> +<varlistentry id="rlogind-inetutils"> +<term><command>rlogind</command></term> +<listitem><para>is a remote login server.</para> +<indexterm zone="inetutils rlogind-inetutils"> +<primary sortas="b-rlogind">rlogind</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>rsh</title> -<para><command>rsh</command> is a remote shell client.</para></sect3> +<varlistentry id="rshd-inetutils"> +<term><command>rshd</command></term> +<listitem><para>is a remote shell server.</para> +<indexterm zone="inetutils rshd-inetutils"> +<primary sortas="b-rshd">rshd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>syslogd</title> -<para><command>syslogd</command> logs systems messages.</para></sect3> +<varlistentry id="talkd"> +<term><command>talkd</command></term> +<listitem><para>is a remote user communication server.</para> +<indexterm zone="inetutils talkd"> +<primary sortas="b-talkd">talkd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>talk</title> -<para><command>talk</command> allows communication between users.</para></sect3> +<varlistentry id="telnetd-inetutils"> +<term><command>telnetd</command></term> +<listitem><para>is a <acronym>DARPA</acronym> TELNET protocol server.</para> +<indexterm zone="inetutils telnetd-inetutils"> +<primary sortas="b-telnetd">telnetd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>telnet</title> -<para><command>telnet</command> is a user interface to the TELNET -protocol.</para></sect3> +<varlistentry id="tftpd"> +<term><command>tftpd</command></term> +<listitem><para>is an Internet Trivial File Transfer Protocol server.</para> +<indexterm zone="inetutils tftpd"> +<primary sortas="b-tftpd">tftpd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>tftp</title> -<para><command>tftp</command> is an Internet Trivial File Transfer -Protocol client.</para></sect3> +<varlistentry id="uucpd"> +<term><command>uucpd</command></term> +<listitem><para>is a server for supporting <acronym>UUCP</acronym> +connections over networks.</para> +<indexterm zone="inetutils uucpd"> +<primary sortas="b-uucpd">uucpd</primary> +</indexterm></listitem> +</varlistentry> -<sect3><title>whois</title> -<para><command>whois</command> is a client for the whois directory -service.</para></sect3> +<varlistentry id="whois-inetutils"> +<term><command>whois</command></term> +<listitem><para>is a client for the whois directory service. Note that the +<xref linkend="whois"/> package provides a much better client.</para> +<indexterm zone="inetutils whois-inetutils"> +<primary sortas="b-whois">whois</primary> +</indexterm></listitem> +</varlistentry> +</variablelist> -<sect3><title>ftpd</title> -<para><command>ftpd</command> is a <acronym>DARPA</acronym> Internet File -Transfer Protocol server.</para></sect3> - -<sect3><title>inetd</title> -<para><command>inetd</command> is an Internet super-server.</para></sect3> - -<sect3><title>rexecd</title> -<para><command>rexcd</command> is a remote execution server.</para></sect3> - -<sect3><title>rlogind</title> -<para><command>rlogind</command> is a remote login server.</para></sect3> - -<sect3><title>rshd</title> -<para><command>rshd</command> is a remote shell server.</para></sect3> - -<sect3><title>talkd</title> -<para><command>talkd</command> is a remote user communication -server.</para></sect3> - -<sect3><title>telnetd</title> -<para><command>telnetd</command> is a <acronym>DARPA</acronym> TELNET protocol -server.</para></sect3> - -<sect3><title>tftpd</title> -<para><command>tftpd</command> is an Internet Trivial File Transfer Protocol -server.</para></sect3> - -<sect3><title>uucpd</title> -<para><command>uucpd</command> is the server for supporting -<acronym>UUCP</acronym> connections over networks.</para></sect3> - </sect2> </sect1> Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2005-03-23 19:19:56 UTC (rev 3572) +++ trunk/BOOK/introduction/welcome/changelog.xml 2005-03-23 21:43:09 UTC (rev 3573) @@ -23,7 +23,8 @@ <itemizedlist> <listitem><para>March 23rd, 2005 [randy]: Updated to Shadow-4.0.7; added -security patch to Vim instructions.</para></listitem> +security patch to Vim instructions; added daemon fixes patch to Inetutils +instructions.</para></listitem> <listitem><para>March 22nd, 2005 [randy]: Added the installation of documentation to the Linux-PAM instructions.</para></listitem> Added: trunk/patches/inetutils-1.4.2-daemon_fixes-1.patch =================================================================== --- trunk/patches/inetutils-1.4.2-daemon_fixes-1.patch 2005-03-23 19:19:56 UTC (rev 3572) +++ trunk/patches/inetutils-1.4.2-daemon_fixes-1.patch 2005-03-23 21:43:09 UTC (rev 3573) @@ -0,0 +1,168 @@ +Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org> +Date: 2005-03-23 +Initial Package Version: 1.4.2 +Upstream Status: Not sure +Origin: Internet (URL's are now lost) +Description: Fix the rexecd daemon so that it understands shadow + passwords. Fix the rshd daemon so that it properly + resolves hostnames. + +$LastChangedBy$ +$Date$ + +diff -Naur inetutils-1.4.2-orig/rexecd/rexecd.c inetutils-1.4.2/rexecd/rexecd.c +--- inetutils-1.4.2-orig/rexecd/rexecd.c 2002-12-11 12:38:00.000000000 +0000 ++++ inetutils-1.4.2/rexecd/rexecd.c 2005-02-22 19:53:44.146962264 +0000 +@@ -79,6 +79,10 @@ + #include <varargs.h> + #endif + ++#ifdef HAVE_SHADOW_H ++#include <shadow.h> ++#endif ++ + void error __P ((const char *fmt, ...)); + /* + * remote execute server: +@@ -127,6 +131,10 @@ + char *cmdbuf, *cp, *namep; + char *user, *pass; + struct passwd *pwd; ++#ifdef HAVE_SHADOW_H ++ struct spwd *spwd; ++ char *pw_field; ++#endif + int s; + u_short port; + int pv[2], pid, cc; +@@ -186,6 +194,24 @@ + exit(1); + } + endpwent(); ++ ++#ifdef HAVE_SHADOW_H ++ // Get encrypted password from /etc/shadow if possible, ++ // else from /etc/passwd. ++ spwd = getspnam(user); ++ if (spwd) { ++ pw_field = spwd->sp_pwdp; ++ } else { ++ pw_field = pwd->pw_passwd; ++ } ++ if (*pw_field != '\0') { ++ namep = CRYPT (pass, pw_field); ++ if (strcmp(namep, pw_field)) { ++ error("Password incorrect.\n"); ++ exit(1); ++ } ++ } ++#else + if (*pwd->pw_passwd != '\0') { + namep = CRYPT (pass, pwd->pw_passwd); + if (strcmp(namep, pwd->pw_passwd)) { +@@ -193,6 +219,7 @@ + exit(1); + } + } ++#endif + write(STDERR_FILENO, "\0", 1); + if (port) { + pipe(pv); +diff -Naur inetutils-1.4.2-orig/rshd/rshd.c inetutils-1.4.2/rshd/rshd.c +--- inetutils-1.4.2-orig/rshd/rshd.c 2002-12-11 12:38:00.000000000 +0000 ++++ inetutils-1.4.2/rshd/rshd.c 2005-02-22 19:54:33.162510768 +0000 +@@ -443,7 +443,7 @@ + dup2 (sockfd, STDERR_FILENO); + } + +- /* Get the "name" of the clent form its Internet address. ++ /* Get the "name" of the client form its Internet address. + * This is used for the autentication below + */ + errorstr = NULL; +@@ -457,52 +457,49 @@ + * in a remote net; look up the name and check that this + * address corresponds to the name. + */ +- hostname = strdup (hp->h_name); ++ const char *remotehost = strdup(hp->h_name); + #ifdef KERBEROS + if (!use_kerberos) + #endif +- if (check_all || local_domain (hp->h_name)) ++ if (! remotehost) ++ errorstr = "Out of memory\n"; ++ else if (check_all || local_domain (remotehost)) + { +- char *remotehost = (char *) alloca (strlen (hp->h_name) + 1); +- if (! remotehost) +- errorstr = "Out of memory\n"; +- else ++ errorhost = remotehost; ++ hp = gethostbyname (remotehost); ++ if (hp == NULL) + { +- strcpy (remotehost, hp->h_name); +- errorhost = remotehost; +- hp = gethostbyname (remotehost); +- if (hp == NULL) ++ syslog (LOG_INFO, ++ "Couldn't look up address for %s", remotehost); ++ errorstr = "Couldn't look up address for your host (%s)\n"; ++ hostname = strdup(inet_ntoa(fromp->sin_addr)); ++ } ++ else ++ { ++ for (; ; hp->h_addr_list++) + { +- syslog (LOG_INFO, +- "Couldn't look up address for %s", remotehost); +- errorstr = "Couldn't look up address for your host (%s)\n"; +- hostname = inet_ntoa (fromp->sin_addr); ++ if (hp->h_addr_list[0] == NULL) ++ { ++ syslog (LOG_NOTICE, ++ "Host addr %s not listed for host %s", ++ inet_ntoa (fromp->sin_addr), hp->h_name); ++ errorstr = "Host address mismatch for %s\n"; ++ hostname = strdup(inet_ntoa(fromp->sin_addr)); ++ break; ++ } ++ if (!memcmp (hp->h_addr_list[0], ++ (caddr_t)&fromp->sin_addr, ++ sizeof fromp->sin_addr)) ++ { ++ hostname = strdup(hp->h_name); ++ break; /* equal, OK */ ++ } + } +- else +- for (; ; hp->h_addr_list++) +- { +- if (hp->h_addr_list[0] == NULL) +- { +- syslog (LOG_NOTICE, +- "Host addr %s not listed for host %s", +- inet_ntoa (fromp->sin_addr), hp->h_name); +- errorstr = "Host address mismatch for %s\n"; +- hostname = inet_ntoa (fromp->sin_addr); +- break; +- } +- if (!memcmp (hp->h_addr_list[0], +- (caddr_t)&fromp->sin_addr, +- sizeof fromp->sin_addr)) +- { +- hostname = hp->h_name; +- break; /* equal, OK */ +- } +- } +- } ++ } + } + } + else +- errorhost = hostname = inet_ntoa (fromp->sin_addr); ++ errorhost = hostname = strdup(inet_ntoa(fromp->sin_addr)); + + #ifdef KERBEROS + if (use_kerberos) Property changes on: trunk/patches/inetutils-1.4.2-daemon_fixes-1.patch ___________________________________________________________________ Name: svn:keywords + LastChangedBy Date -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
