Article View: news.software.nntp
Article #45780Re: nntp.access password confusion
From: Russ Allbery
Date: Sat, 15 Apr 2000 00:00
Date: Sat, 15 Apr 2000 00:00
47 lines
2364 bytes
2364 bytes
Ron Peterson <rpeterson@yellowbank.com> writes:
> Well, I would like to create three types of newsgroups. (1) Everyone
> can read/post - no username/password, (2) Authorized users can post,
> everyone can read, (3) Only authorized users can read/post.
*.example.com:RP:::example.*,!example.project.*
*.example.com:RP:usera:passa:example.*
is, I think, as close as you can come with INN 2.2 and earlier, which does
(1) and (3) but not (2). The old nnrp.access file syntax doesn't allow
giving someone read and post access to some newsgroups and only read
access to others, so far as I know. You have to use moderated groups
instead.
In INN 2.3, which is *almost* in public beta release (you can download the
release candidates from <ftp://ftp.isc.org/isc/inn/snapshots/> as
inn-BETA-*), there's a different configuration file called readers.conf
that is used instead, and I believe the following would do what you want:
auth all {
hosts: *.example.com
auth: "ckpasswd -f /path/to/passwd/file"
default: <REGULAR>
}
access authorized {
users: *
newsgroups: *
}
access regular {
users: <REGULAR>
read: *,!example.project.principals
post: *,!example.project.*
}
Later access groups override earlier ones, so someone with an assigned
identity of <REGULAR> (anyone who hasn't authenticated) will get the
access specified by the final access group. You'll also need to create a
passwd file for ckpasswd to use, which contains usernames and passwords
encrypted with crypt(2).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yln1mv56us.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<8d82nv$a2j$1@nnrp1.deja.com> <ylwvm0mbn7.fsf@windlord.stanford.edu> <8dap2i$3gl$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <yln1mv56us.fsf@windlord.stanford.edu> Subject: Re: nntp.access password confusion Date: Sat, 15 Apr 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <8d82nv$a2j$1@nnrp1.deja.com> <ylwvm0mbn7.fsf@windlord.stanford.edu> <8dap2i$3gl$1@nnrp1.deja.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 611660284 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp