Article View: news.software.nntp
Article #57215Re: nntp auth ..
From: Russ Allbery
Date: Thu, 14 Mar 2002 01:55
Date: Thu, 14 Mar 2002 01:55
49 lines
3042 bytes
3042 bytes
Frank Cheung <frank@kakki.com> writes:
> I have already scanned throught the man readers.conf. Its not really
> helpful. I have already get use of what the manual say. It is not
> working. Is there any other way to accomplish the task?
There is a very clearcut example in the manual page for how to use
ckpasswd -s:
auth all {
auth: "ckpasswd -s"
}
access full {
users: *
newsgroups: *
}
It's pretty straightforward.
Perhaps the problem is that ckpasswd isn't working? Here's the section of
the manual page for ckpasswd -s that has some cautions:
-s Check passwords against the result of getspnam(3) instead of
getpwnam(3). This function, on those systems that supports it, reads
from /etc/shadow or similar more restricted files. If you want to
check passwords supplied to nnrpd(8) against system account
passwords, you will probably have to use this option on most systems.
Most systems require special privileges to call getspnam(3), so in
order to use this option you may need to make ckpasswd setgid to some
group (like group "shadow") or even setuid root. ckpasswd has not
been specifically audited for such uses! It is, however, a very
small program that you should be able to check by hand for security.
This configuration is not recommended if it can be avoided, since the
NNTP protocol has no way of protecting passwords from casual
interception, and using system passwords to authenticate NNTP
connections therefore opens you up to the risk of password sniffing.
If you do use system passwords to authenticate connections, you
should seriously consider only doing NNTP through ssh tunnels or over
SSL.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<yl663zvrot.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<a6nov5$rog1@rain.i-cable.com> <yl4rjkgr9w.fsf@windlord.stanford.edu> <a6ouej$7ce$1@hfc.pacific.net.hk>Show Full Headers
Complete Article Headers
Message-ID: <yl663zvrot.fsf@windlord.stanford.edu> Subject: Re: nntp auth .. Date: Wed, 13 Mar 2002 17:55:30 -0800 From: Russ Allbery <rra@stanford.edu> References: <a6nov5$rog1@rain.i-cable.com> <yl4rjkgr9w.fsf@windlord.stanford.edu> <a6ouej$7ce$1@hfc.pacific.net.hk> 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!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 48 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1016070930 20785 171.64.13.23 (14 Mar 2002 01:55:30 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:RRTolwVcvfhKJgBlJxYfTLKbzak=