Article View: news.software.nntp
Article #72772Re: The use of ckpasswd in readers.conf
From: Jeffrey M. Vinocur
Date: Mon, 28 Nov 2005 23:33
Date: Mon, 28 Nov 2005 23:33
53 lines
3060 bytes
3060 bytes
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.
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.
>That said I also have an account with the same username and password on
>the server if Mozilla is capable of just picking up my shadow entry?
Only if you use "ckpasswd -s".
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<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!postnews.google.com!news4.google.com!news.glorb.com!news.litech.org!not-for-mailReferences:
<dmg07f$req$2$8302bc10@news.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <dmg455$g93$1@puck.litech.org> Subject: Re: The use of ckpasswd in readers.conf Date: Mon, 28 Nov 2005 23:33:57 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <dmg07f$req$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!postnews.google.com!news4.google.com!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 53 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1133220837 16675 66.218.0.75 (28 Nov 2005 23:33:57 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Mon, 28 Nov 2005 23:33:57 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)