-->
Previous Table of Contents Next


Configuring nntpd

Once the nntpd binaries have been created by running the conf.h file, you can configure the file /usr/lib/news/nntp_access to control which remote machines can use NNTP on your system. The file is organized in a set of lines, one for each remote, using this format


sitename    read|xfer|both|no  post|no    except

where sitename is the name of the remote machine that can be identified by its site name, a fully qualified domain name, or the IP address. NNTP allows for partial matches of the domain name and IP address, which are useful to providing multiple lines of information about newsgroups. If the remote machine’s name or IP address matches the sitename exactly, only that one line is read (the rest of the file is ignored). If the match is only partial, that line is read, then the rest of the file is examined to find further matches. If you want to match all remote machines, you can use the sitename default.

The access permissions for the site are defined in the second field. There are four legal values, which have these meanings:

  read the remote can retrieve articles (pulling)
  xfer the remote can send articles (pushing)
  both allows both sending and receiving of articles
  no no access to articles

The third field indicates whether the remote site can post articles. If the keyword post is used, the remote can send articles and the local NNTP system will complete the header information. If the keyword no appears in the second or third field, the remote cannot post articles.

The last field identifies any newsgroups the remote is denied access to. The field is comma-separated and preceded by an exclamation mark (you will see this format frequently in C News). For example, the entry


chatton.bignet.com  both  post  !alt,local

allows the remote machine chatton.bignet.com to send and receive all articles except those in the alt and local newsgroup hierarchies. The remote may also post articles.

You will probably want to set up the /usr/lib/news/nntp_access so there is a default value for all machines, then specific entries for machines you want to work with. For example, follow this /usr/lib/news/nntp_access file


# default entry

default        xfer    no

# allow chatton full access

chatton.bignet.com    both    post

# allow brutus to read but not post

brutus.bignet.com    read    no

This lets any machine other than those explicitly specified transfer articles to your machine but not post them, while chattonand brutus have explicit instructions allowing them to read and post, and read-only, respectively.

Some versions of NNTP have implemented authorization systems to ensure that your machine does not get fooled into thinking another machine is at the other end of a connection. The authorization system has not been working well for most versions of nntpd, so it is best left alone at this point. Check future releases of nntpd for more information about the authorization process.

Configuring Newsreaders

A newsreader is a user interface to the newsgroups stored by a news download program such as NNTP or CNews. Newsreaders let users read, print, save, and perform many other actions on newsgroups, including replying to an article. At the newsgroup level, newsreaders let users examine a newsgroup’s lists and subjects, subscribe or unsubscribe to newsgroups, and generally manage their news access.

Newsreaders vary considerably from the simple to the very complex, from character-based to graphical, and from useful to atrocious. There are many newsreaders currently available with Linux distributions, and more newsreaders are appearing as programmers convert their favorite UNIX or DOS-based newsreaders to work under Linux.

While we can’t look at every newsreader currently available, we can show you the basic configuration requirements for the most commonly used newsreaders. This information, coupled with the documentation that accompanies new newsreaders, should help you set up your Linux system for optimum behavior of the news system. Since most Linux systems are supplied with trn and tin (both threaded newsreaders), they are the primary packages that we will look at in this chapter.


Previous Table of Contents Next