Article View: news.software.nntp
Article #54328Re: readers.conf - allowing read only access
From: Jeffrey M. Vinocur
Date: Thu, 20 Sep 2001 16:14
Date: Thu, 20 Sep 2001 16:14
97 lines
3313 bytes
3313 bytes
In article <62tjqt4o0j3kchoc1f6ffrm5tu0oc9ut3s@news.gradwell.net>,
Peter Gradwell <peter@gradwell.com> wrote:
>
>1/ anyone connecting to the pubnews host can read a set of news
>groups. They can't post, use newnews and are throttled.
>
>2/ anyone connecting to the pubnews host, who logs in (listed in
>passwd file number one) is the same as (1), but can use newnews, with
>less throttiling.
>
>[...]
>
>This all works fine, except that I can't get "rule 1" - allowing any
>read only without authentication to work. It seems to be clashing with
>"rule 2", and requiring login.
I hypothesize this will work:
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
auth pub {
key: pub
default: "<anonpub>"
auth: "ckpasswd -f /usr/local/news/db/users.pubnews"
localaddress: "pubnews.gradwell.net, 195.149.39.138"
}
auth paid {
key: paid
auth: "ckpasswd -f /usr/local/news/db/users.paid"
localaddress: "news.gradwell.net, 195.149.39.13"
}
auth otherplace {
key: otherplace
auth: "ckpasswd -f /usr/local/news/db/users.otherplace"
}
access registered {
users: *
key: pub
post: !*,gradwell.discuss,gradwell.announce,gradwell.support,gradwell.news-request,gradwell.test
read: *,!bofh.*,!net.*,!gradwell.lists.*
access: "RN"
virtualhost: true
pathhost: pubnews.gradwell.net
domain: pubnews.gradwell.net
max_rate: 256
}
access public {
users: "<anonpub>"
key: pub
post: !*,gradwell.discuss,gradwell.announce,gradwell.support,gradwell.news-request,gradwell.test
read: *,!bofh.*,!net.*,!gradwell.lists.*
access: "R"
virtualhost: true
pathhost: pubnews.gradwell.net
domain: pubnews.gradwell.net
max_rate: 32
}
access paid {
key: paid
newsgroups: *,!bofh.*,!net.*
access: "NRP"
virtualhost: true
pathhost: news.gradwell.net
domain: news.gradwell.net
}
access otherplace {
key: otherplace
newsgroups: *
access: "NRP"
virtualhost: true
pathhost: news.gradwell.net
domain: news.gradwell.net
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: "RPANL"
}
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<9od4kb$qf5$1@marduk.litech.org>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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mailReferences:
<62tjqt4o0j3kchoc1f6ffrm5tu0oc9ut3s@news.gradwell.net>Show Full Headers
Complete Article Headers
Message-ID: <9od4kb$qf5$1@marduk.litech.org> Subject: Re: readers.conf - allowing read only access Date: Thu, 20 Sep 2001 16:14:03 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <62tjqt4o0j3kchoc1f6ffrm5tu0oc9ut3s@news.gradwell.net> 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Lithium Technologies Lines: 96 Sender: jeff@litech.org NNTP-Posting-Host: marduk.litech.org X-Trace: marduk.litech.org 1001002443 27109 128.84.154.54 (20 Sep 2001 16:14:03 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Thu, 20 Sep 2001 16:14:03 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)