old-www/LDP/nag2/x-087-2-nntp.nntpd.html

247 lines
3.7 KiB
HTML

<HTML
><HEAD
><TITLE
>Installing the NNTP Server</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="NNTP and thenntpd Daemon"
HREF="x-087-2-nntp.html"><LINK
REL="PREVIOUS"
TITLE="The NNTP Protocol"
HREF="x-087-2-nntp.protocol.html"><LINK
REL="NEXT"
TITLE="Restricting NNTP Access"
HREF="x-087-2-nntp.access.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x-087-2-nntp.protocol.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 22. NNTP and thenntpd Daemon</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-nntp.access.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-NNTP.NNTPD"
>22.2. Installing the NNTP Server</A
></H1
><P
>&#13;The NNTP server (<I
CLASS="EMPHASIS"
>nntpd</I
>) may be compiled in
two ways, depending on the expected load on the news system. There are no
compiled versions available, because of some site-specific defaults that are
hardcoded into the executable. All configuration is done through
macros defined in <TT
CLASS="FILENAME"
>common/conf.h</TT
>.</P
><P
><I
CLASS="EMPHASIS"
>nntpd</I
> may be configured as either a standalone server that
is started at system boot time from an <B
CLASS="COMMAND"
>rc</B
> file, or a daemon
managed by <B
CLASS="COMMAND"
>inetd</B
>. In the latter case, you have to have the
following entry in <TT
CLASS="FILENAME"
>/etc/inetd.conf</TT
>:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>nntp stream tcp nowait news /usr/etc/in.nntpd nntpd</PRE
></TD
></TR
></TABLE
></P
><P
>The <TT
CLASS="FILENAME"
>inetd.conf</TT
> syntax is described in detail in <A
HREF="x-087-2-appl.html"
>Chapter 12</A
>. If you configure <B
CLASS="COMMAND"
>nntpd</B
> as standalone,
make sure that any such line in <B
CLASS="COMMAND"
>inetd.conf</B
> is commented
out. In either case, you have to make sure the following line appears in
<TT
CLASS="FILENAME"
>/etc/services</TT
>:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>nntp 119/tcp readnews untp # Network News Transfer Protocol</PRE
></TD
></TR
></TABLE
></P
><P
>To temporarily store any incoming articles, <B
CLASS="COMMAND"
>nntpd</B
> also needs
a <TT
CLASS="FILENAME"
>.tmp</TT
> directory in your news spool. You should create it
using the following commands:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># <TT
CLASS="USERINPUT"
><B
>mkdir /var/spool/news/.tmp</B
></TT
>
# <TT
CLASS="USERINPUT"
><B
>chown news.news /var/spool/news/.tmp</B
></TT
></PRE
></TD
></TR
></TABLE
></P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x-087-2-nntp.protocol.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x-087-2-nntp.access.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The NNTP Protocol</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-nntp.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Restricting NNTP Access</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>