📄 1167-1167.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="1165-1166.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1168-1171.html">Next</A></CENTER></P>
<A NAME="PAGENUM-1167"><P>Page 1167</P></A>
<P><B>
SEE ALSO
</B></P>
<P>
fstab(5), mount(8), umount(8), exports(5)
</P>
<P><B>
AUTHOR
</B></P>
<P>Rick Sladkey (jrs@world.std.com)
</P>
<P><B>
BUGS
</B></P>
<P>The bg, fg, retry, posix, and nocto options are parsed by mount but currently are silently ignored. The
tcp and namlen options are implemented but are not currently supported by the Linux kernel. The
umount command should notify the server when an NFS filesystem is unmounted.
</P>
<P>Linux 0.99, 20 November 1993
</P>
<H3><A NAME="ch05_ 38">
nnrp.access
</A></H3>
<P>nnrp.access—Access file for on-campus NNTP sites.
</P>
<P><B>
DESCRIPTION
</B></P>
<P>The file /news/lib/nnrp.access specifies the access control for those NNTP sites that are not handled by the
main InterNetNews daemon innd(8). The nnrpd(8) server reads it when first spawned by
innd.
</P>
<P>Comments begin with a number sign (#) and continue through the end of the line. Blank lines and comments are
ignored. All other lines should consist of five fields separated by colons:
</P>
<!-- CODE SNIP //-->
<PRE>
hosts:perms:username:password:patterns
</PRE>
<!-- END CODE SNIP //-->
<P>The first field is a wildmat(3)-style pattern specifying the names or Internet address of a set of hosts. Before a match
is checked, the client's hostname (or its Internet address if
gethostbyaddr(3) fails) is converted to lowercase. Each line
is matched in turn, and the last successful match is taken as the correct one.
</P>
<P>The second field is a set of letters specifying the permissions granted to the client. The
perms should be chosen from the following set:
</P>
<TABLE>
<TR><TD>
R
</TD><TD>
The client can retrieve articles
</TD></TR><TR><TD>
P
</TD><TD>
The client can post articles
</TD></TR></TABLE>
<P>The third and fourth fields specify the
username and password that the client must use to authenticate themselves before
the server will accept any articles. Note that no authentication (other than a matching entry in this file) is required
for newsreading. If they are empty, then no password is required. Whitespace in these fields will result in the client being
unable to properly authenticate themselves and may be used to disable access.
</P>
<P>The fifth field is a set of patterns identifying the newsgroups that the client is allowed to access. The
patterns are interpreted in the same manner as the
newsfeeds(5) file. The default, however, denies access to all groups.
</P>
<P>The access file is normally used to provide host-level access control for reading and posting articles. There are times,
however, when this is not sufficient and user-level access control is needed. Whenever an NNTP
authinfo command is used, the nnrpd server rereads this file and looks for a matching username and password. If the local newsreaders are modified to send
the authinfo command, then all host entries can have no access and specific users can be granted the appropriate read and
post access. For example:
</P>
<!-- CODE //-->
<PRE>
## host:perm:user:pass:groups
## Default is no access.
:: -no- : -no- :!*
## FOO hosts have no password, can read anything.
.foo.com:Read Post:::*
## A related workstation can't access FOO newsgroups.
lenox.foo.net:RP:martha:hiatt:*,!foo.*
</PRE>
<!-- END CODE //-->
<P><CENTER>
<a href="1165-1166.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1168-1171.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -