Article View: news.software.nntp
Article #83757Re: docheckgroups et al
From: John F. Morse
Date: Mon, 03 Jan 2011 11:52
Date: Mon, 03 Jan 2011 11:52
95 lines
4696 bytes
4696 bytes
Hi Jeff,
John F. Morse wrote:
> Jeffrey M. Vinocur wrote:
>
>> Or else it's easy enough to just have two user/pass accounts for
>> yourself in your password file, and then special-case one of the
>> usernames to have different privileges.
>
> Well, ... I find a user "newsmaster" in the passwd file, so I must
> have done something similar in the old days. The password is of course
> encrypted, so I'll need to look around for the plaintext version (it
> might be saved on an old workstation I used years ago).
>
> I may need to return here for further help with readers.conf, since I
> remember years ago it was you who helped me finally get it set up for
> passwords and separate access privileges.
I located the "newsmaster" password, plus a couple of other user
accounts that I created for testing back around 2005, when I had certain
local groups restricted to limited users.
I'm missing something here.... Either I get no access to the control
groups as user newsmaster, or else any "user" can access everything when
I put a CIDR netblock IP in the "hosts" of the second auth block
following the "stdin,localhost" entry. Here, "any user" also includes a
casual user without any authinfo being supplied. Normally
unauthenticated users only get the local.info group.
I don't think I can use an IP nor domain in an auth block and still have
a different access for "newsmaster" and for "john" and for an
unauthenticated user, when they are all on the same LAN.
If I remove the authenticated access block's negation bangs from
!control and !control.* then everybody can see the control groups, which
would be expected but not desired.
I've moved the special access block up and down, added (then completely
replaced) users: "<localhost>" with users: "<newsmaster>" but nothing I
do seems to work. That block seems to be "untouchable."
Below is the actual readers.conf file that you provided around 2005,
minus a long string of usernames which were replaced by the asterisk in
the authenticated access block.
Could you please quote it back in its entirety, and then enter what I
would need to add or change to allow the user "newsmaster" to access all
groups with the RPNAL access privileges, and from only my CIDR netblock?
(Julien suggested 192.168.0.0/16 but I believe that CIDR should be
192.168.0.0/32.)
Using a "diff -U1" format (using "+++" and "---") would make the changes
easier to locate and see what was done to make it work correctly.
TIA, and I'll owe you a dinner. ;-)
auth "global" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/passlist"
default: "<anonymous>"
}
auth "localhost" {
hosts: "stdin,localhost"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/passlist"
default: "<localhost>"
}
access "authenticated" {
users: "*"
newsgroups: "*,!junk,!control,!control.*"
}
access "special" {
users: "<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access "public" {
users: "<anonymous>"
read: "local.info"
}
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<ifsdak$uos$1@n102.xanadu-bbs.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8nu4a2Fp64U1@mid.individual.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <ifrihc$4jg$2@puck.litech.org> <ifs31u$rvp$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <ifsdak$uos$1@n102.xanadu-bbs.net> Subject: Re: docheckgroups et al Date: Mon, 03 Jan 2011 05:52:52 -0600 From: "John F. Morse" <john@example.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8nu4a2Fp64U1@mid.individual.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <ifrihc$4jg$2@puck.litech.org> <ifs31u$rvp$1@n102.xanadu-bbs.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 95 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: n102.xanadu-bbs.net 1294055572 31516 192.168.89.210 (3 Jan 2011 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 3 Jan 2011 11:52:52 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <ifs31u$rvp$1@n102.xanadu-bbs.net> X-Enigmail-Version: 0.96.0