📄 1131-1132.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>
</HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=05 //-->
<!-- PAGES=1103-1208 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="1129-1130.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1133-1134.html">Next</A></CENTER></P>
<A NAME="PAGENUM-1131"><P>Page 1131</P></A>
<P><B>
SEE ALSO
</B></P>
<P>groff_font(5)
</P>
<P>groff version 1.09, 14 February 1994
</P>
<H3><A NAME="ch05_ 19">
group
</A></H3>
<P>group—User group file.
</P>
<P><B>
DESCRIPTION
</B></P>
<P>/etc/group is an ASCII file that defines the groups to which users belong. There is one entry per line, and each line has
the format
</P>
<!-- CODE SNIP //-->
<PRE>
group_name:passwd:GID:user_list
</PRE>
<!-- END CODE SNIP //-->
<P>The field descriptions are</P>
<TABLE>
<TR><TD>
group_name
</TD><TD>
The name of the group.
</TD></TR><TR><TD>
passwd
</TD><TD>
The (encrypted) group password. If this field is empty, no password is needed.
</TD></TR><TR><TD>
GID
</TD><TD>
The numerical group ID.
</TD></TR><TR><TD>
user_list
</TD><TD>
All the group member's usernames, separated by commas.
</TD></TR></TABLE>
<P><B>
FILES
</B></P>
<P>/etc/group
</P>
<P><B>
SEE ALSO
</B></P>
<P>
login(1), newgrp(1), passwd(5)
</P>
<P>Linux, 29 December 1992</P>
<H3><A NAME="ch05_ 20">
history
</A></H3>
<P>history—Record of current and recently expired Usenet articles.
</P>
<P><B>
DESCRIPTION
</B></P>
<P>The file /news/lib/history keeps a record of all articles currently stored in the news system, as well as those that have
been received but since expired.
<P>The file consists of text lines. Each line corresponds to one article. The file is normally kept sorted in the order in
which articles are received, although this is not a requirement.
innd(8) appends a new line each time it files an article, and
expire(8) builds a new version of the file by removing old articles and purging old entries.
</P>
<P>Each line consists of two or three fields separated by a tab, shown below as
\t:
</P>
<!-- CODE SNIP //-->
<PRE>
<Message_ID>\t date
<Message_ID>\t date \t files
</PRE>
<!-- END CODE SNIP //-->
<P>The Message_ID field is the value of the article's Message-ID header, including the angle brackets.
</P>
<P>The date field consists of three subfields separated by a tilde. All subfields are the text representation of the number
of seconds since the epoch—a time_t; see
gettimeofday(2). The first subfield is the article's arrival date. If copies of the
article are still present, then the second subfield is either the value of the article's Expires header or a hyphen if no expiration
date was specified. If an article has been expired, the second subfield will be a hyphen. The third subfield is the value of
the article's Date header, recording when the article was posted.
</P>
<A NAME="PAGENUM-1132"><P>Page 1132</P></A>
<P>The files field is a set of entries separated by one or more spaces. Each entry consists of the name of the newsgroup, a
slash, and the article number. This field is empty if the article has been expired.
</P>
<P>For example, an article cross-posted to
comp.sources.unix and comp.sources.d that was posted on February 10, 1991,
(and received three minutes later) with an expiration date of May 5, 1991, could have a history line (broken into two lines
for display) like the following:
</P>
<!-- CODE SNIP //-->
<PRE>
<312@litchi.foo.com> \t 666162000~673329600~666162180
\t comp.sources.unix/1104 comp.sources.d/7056
</PRE>
<!-- END CODE SNIP //-->
<P>In addition to the text file, there is a dbz(3z) database associated with the file that uses the Message-ID field as a key
to determine the offset in the text file where the associated line begins. For historical reasons, the key includes the trailing
\0 byte (which is not stored in the text file).
</P>
<P><B>
HISTORY
</B></P>
<P>Written by Rich $alz (rsalz@uunet.uu.net) for InterNetNews.
</P>
<P><B>
SEE ALSO
</B></P>
<P>dbz(3z), expire(8), innd(8), news-recovery(8)
</P>
<H3><A NAME="ch05_ 21">
hosts.nntp, hosts.nntp.nolimit
</A></H3>
<P>hosts.nntp, hosts.nntp.nolimit—List of hosts that feed NNTP news.
</P>
<P><B>
DESCRIPTION
</B></P>
<P>The file /news/lib/hosts.nntp is read by innd(8) to get the list of hosts that feed the local site Usenet news using the
NNTP protocol. The server reads this file at startup or when directed to by
ctlinnd(8). When a hosts connects to the NNTP port
of the system on which innd is running, the server will do a check to see if their Internet address is the same as one of the
hosts named in this file. If the host is not mentioned, then
innd will spawn an nnrpd(8) to process the connection, with
the accepted connection on standard input and standard output.
</P>
<P>Comments begin with a number sign (#) and continue through the end of the line. Blank lines and comments are
also ignored. All other lines should consist of two or three fields separated by a colon.
</P>
<P>The first field should be either an Internet address in dotted-quad format or an address that can be parsed
by gethostbyname(3). If a host's entry has multiple addresses, all of them will be added to the access list. The second field,
which may be blank, is the password the foreign host is required to use when first connecting. The third field, which may
be omitted, is a list of newsgroups to which the host may post articles. This list is parsed as a
newsfeeds(5) subscription list; groups not in the list are ignored.
</P>
<P>Because innd is usually started at system boot time, the local nameserver may not be fully operational when
innd parses this file. As a work-around, a ctlinnd
reload command can be performed after a delay of an hour or so. It is also possible
to provide both a host's name and its dotted-quad address in the file.
</P>
<P>For example:
</P>
<!-- CODE //-->
<PRE>
## FOO has a password, UUNET doesn't.
## UUNET cannot post to local groups.
## These are comment lines.
news.foo.com:magic
uunet.uu.net::!foo.*
</PRE>
<!-- END CODE //-->
<P>If the file contains passwords, it should not be world-readable. The file
/news/lib/hosts.nntp.nolimit, if it exists, is
read whenever the hosts.nntp file is read. It has the same format, although only the first field is used. Any host mentioned in
this file is not subject to the incoming connections limit specified by
innd's _c flag. This can be used to allow local hosts or
time-sensitive peers to connect regardless of the local conditions.
</P>
<P><CENTER>
<a href="1129-1130.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1133-1134.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -