📄 nnrp.access.5
字号:
.\" $Revision: 1.9 $.TH NNRP.ACCESS 5.SH NAMEnnrp.access \- access file for on-campus NNTP sites.SH DESCRIPTIONThe file.\" =()<.I @<_PATH_NNRPACCESS>@>()=.I /var/spool/news/data/nnrp.accessspecifies the access control for those NNTP sites that are nothandled by the main InterNetNews daemon.IR innd (8).The.IR nnrpd (8)server reads it when first spawned by.IR innd ..PPComments begin with a number sign (``#'') and continue through the endof the line.Blank lines and comments are ignored.All other lines should consist of five fields separated by colons:.RS.nfhosts:perms:username:password:patterns.fi.RE.PPThe first field is a.IR wildmat (3)-stylepattern specifying the names or Internet address of a set of.IR hosts .Before a match is checked, the client's hostname (or its Internetaddress if.IR gethostbyaddr (3)fails)is converted to lowercase.Each line is matched in turn, and the last successful match is takenas the correct one..PPThe second field is a set of letters specifying the permissions grantedto the client.The.I permsshould be chosen from the following set:.RS.nfR The client can retrieve articlesP The client can post articles.fi.RE.PPThe third and fourth fields specify the.I usernameand.I passwordthat the client must use to authenticate themselves before the serverwill accept any articles.Note that no authentication (other then 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 unableto properly authenticate themselves and may be used to disable access..PPThe fifth field is a set of patterns identifying the newsgroups thatthe client is allowed to access.The patterns are interpreted in the same manner as the.IR newsfeeds (5)file.The default, however, denies access to all groups..PPThe access file is normally used to provide host-level access controlfor reading and posting articles.There are times, however, when this is not sufficient and user-level accesscontrol is needed.Whenever an NNTP ``authinfo'' command is used, the .I nnrpdserver re-reads 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 grantedthe appropriate read and post access..PPFor example:.RS.nf## 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.*.fi.RE.PPIf the file contains passwords, it should not be world-readable..SH HISTORYWritten by Rich $alz <rsalz@uunet.uu.net> for InterNetNews..de R$This is revision \\$3, dated \\$4....R$ $Id: nnrp.access.5,v 1.9 1992/08/19 16:33:51 rsalz Exp $.SH "SEE ALSO"innd(8),newsfeeds(5),nnrpd(8),wildmat(3).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -