old-www/LDP/nag2/x-087-2-cnews.nfs.html

203 lines
3.9 KiB
HTML

<HTML
><HEAD
><TITLE
>C News in an NFS Environment</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="C News"
HREF="x-087-2-cnews.html"><LINK
REL="PREVIOUS"
TITLE="Control Messages"
HREF="x-087-2-cnews.control.html"><LINK
REL="NEXT"
TITLE="Maintenance Tools and Tasks"
HREF="x-087-2-cnews.maint.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-cnews.control.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 21. C News</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-cnews.maint.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-CNEWS.NFS"
>21.9. C News in an NFS Environment</A
></H1
><P
>&#13;
A simple way to distribute news within a local network is to keep all
news on a central host and export the relevant directories via NFS so
that newsreaders may scan the articles directly. The overhead involved
in retrieving and threading articles is significantly lower than
NNTP. NNTP, on the other hand, wins in a heterogeneous network where
equipment varies widely among hosts, or where users don't have
equivalent accounts on the server machine.</P
><P
>When you use NFS, articles posted on a local host have to be forwarded to
the central machine because accessing adminstrative files might
otherwise expose the system to race conditions that leave the files
inconsistent. Also, you might want to protect your news spool area by
exporting it read-only, which also requires forwarding to the central
machine.</P
><P
>C News handles this central machine configuration transparently to the user.
When you post an article, your newsreader usually invokes
<B
CLASS="COMMAND"
>inews</B
> to inject the article into the news system. This
command runs a number of checks on the article, completes the header, and
checks the file <TT
CLASS="FILENAME"
>server</TT
> in <TT
CLASS="FILENAME"
>/etc/news</TT
>.
If this file exists and contains a hostname different from the local host's
name, <B
CLASS="COMMAND"
>inews</B
> is invoked on that server host via
<B
CLASS="COMMAND"
>rsh</B
>. Since the <B
CLASS="COMMAND"
>inews</B
> script uses a
number of binary commands and support files from C News, you have to either
have C News installed locally or mount the news software from the server.</P
><P
>For the <B
CLASS="COMMAND"
>rsh</B
> invocation to work properly, each user who
posts news must have an equivalent account on the server system, i.e., one
to which she can log in without being asked for a password.</P
><P
>Make sure that the hostname given in <TT
CLASS="FILENAME"
>server</TT
> literally
matches the output of the <B
CLASS="COMMAND"
>hostname</B
> command on the server
machine, or else C News will loop forever in an attempt to deliver the article.
We discuss NFS is detail in <A
HREF="x-087-2-nfs.html"
>Chapter 14</A
>.</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-cnews.control.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-cnews.maint.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Control Messages</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-cnews.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Maintenance Tools and Tasks</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>