🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72775

Re: The use of ckpasswd in readers.conf

#72775
From: Benedict White
Date: Tue, 29 Nov 2005 01:04
83 lines
4434 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:
> In article <dmg07f$req$2$8302bc10@news.demon.co.uk>,
> Benedict White  <benedict_white@uk2.net> wrote:
>>Hi, I am having a little trouble seeing why nothing I try is working in 
>>the way of authorisation.
> 
> You haven't told us any actual error messages or provided log
> entries, so I can't tell what the true problem is.  But here are
> some things I would change...
> 
> 
>>auth "local" {
>>    hosts: "192.168.2.*"
>>    auth: "ckpasswd -f /etc/shadow"
>>    default: "<local>@somedomain.co.uk"
>>}
> 
> I don't recommend using "ckpasswd -f /etc/shadow" -- if you want
> to use system passwords, use "ckpasswd -s" instead.  Either way
> is a potential security hole, but if you're sure you know what
> you're doing, it should work provided you've given the ckpasswd
> binary appropriate permissions.
> 

Neither do I, but I am just trying to understand how to get it working 
the way I want, so am starting with something so simple I should be able 
to get it to work, and then make it more complecated as I go.

> You have another problem, which is that when a user connects from
> a host in that range, the assigned identity will be
> "<local>@somedomain.co.uk" -before- authentication (for anyone
> coming from that netblock, which may not be what you want).
> Afterwards it will be whatever the user authenticated with -- and
> you don't have an access group that would match any other
> identity.
> 
> 
>>Now, I have tried various things on the auth line, including just 
>>"ckpasswd" "ckpasswd -S" and the line above, but nothing challenges me 
>>for a password.
> 
> Yes, if you provide a default: line, you won't be challenged for
> a password, because INN is going to allow you the permissions
> determined by the default identity.  If you want the ability to
> assign default permissions like this, then you need to configure
> your newsreader to "always send password" or "authenticate
> without prompting" or whatever it may be called in your software.
> If not, you can simply remove the default: line from that block.
> 

OK, it seems to not demand a password if I have a default line, and 
demands one when I don't.

I do need it to demand the password so the default line presumably needs 
to go.

So the next question is how do I get access groups to work to allow 
different access for different classes of people.

As I understand it the name of the auth block and access block are not 
related, so if someone auths one way it does not imply they will get 
access from an access group of the same name.

So how does one set that up? 

If I want to set access on the basis of user login but have no reliable 
way of determening where they come from, how can I can control access 
and limit it for some users but allow it for others?



-- 
Kind regards



Benedict White

Please note that my email address is not checked regularly and will be used for 
harvesting UCE. If you want to email me work out my address from the following, 
my first name at law 4 free daht org daht uk. If this cause accessibility problems 
to those who are blind etc., please post a follow up, and I will try and improve 
the situation. 
Technical Details
Message-ID: <dmg9ef$5uq$2$8302bc10@news.demon.co.uk>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
References: <dmg07f$req$2$8302bc10@news.demon.co.uk> <dmg455$g93$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <dmg9ef$5uq$2$8302bc10@news.demon.co.uk>
Subject: Re: The use of ckpasswd in readers.conf
Date: Tue, 29 Nov 2005 01:04:15 +0000
From: Benedict White <benedict_white@uk2.net>
References: <dmg07f$req$2$8302bc10@news.demon.co.uk> <dmg455$g93$1@puck.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
Newsgroups: news.software.nntp
Lines: 83
Sender: Benedict White <benedict@mailgate.cse-ltd.co.uk>
NNTP-Posting-Host: 83.105.22.35
X-Trace: news.demon.co.uk 1133226255 6106 83.105.22.35 (29 Nov 2005 01:04:15
 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 29 Nov 2005 01:04:15 +0000 (UTC)
User-Agent: tin/1.7.9-20050629 ("Grimsay") (UNIX) (Linux/2.6.13-ARCH (i686))