🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71075

Re: INN: newbie questions

#71075
From: Russ Allbery
Date: Sun, 17 Apr 2005 21:20
80 lines
4247 bytes
Krzysztof Trybowski <trybowski@gazeta.pl.invalidd> writes:

>   I  have  generated  the  password  file  for users accessing my nntp
>   server   (done  so  using  htpasswd)  and created an auth group that
>   looks like:

> auth "everybody" {
>     auth: "ckpasswd -f /etc/news/users"
>     default: "public"
> }

>   Now,  if later I also want to include users from /etc/shadow, should
>   I  just add another auth: with "ckpasswd -s"?

Ideally, you should build ckpasswd with PAM support and manage this
through the system PAM configuration, since that's really the most
flexible and most secure way of doing things.  But other than that, yes,
you'd add ckpasswd -s.  You may need to make ckpasswd setgid shadow or
even setuid root in order for this to work on your system, depending on
what permissions are needed to read the shadow file.

>   This seems to be true, however there are two things to consider. How
>   big impact on system's security does that have?

Well, you're allowing people to send their passwords over an NNTP
connection, so I'd say you need to make sure you're either using SSL or
you really trust your network.  You're also trusting the security of the
ckpasswd program, although it's pretty small and straightforward.

>   And I noticed that my /etc/shadow uses different way of hashing
>   passwords -- they are longer and start with $1$. Could that be MD5? 
>   Will ckpasswd deal with such passwords?

No, it won't.

If you need to use MD5 passwords, you have to use PAM.  ckpasswd (other
than via PAM) only supports crypt().

>   What if I wanted to use an sql database instead of /etc/news/users?
>   Should I use something other than ckpasswd and if so, then what?

There are PAM modules to do this, but yes, if you can't use PAM, you'll
need to use a different program.  INN CURRENT has an authmysql program in
contrib that would probably work.

>   Is there a way to have "access" groups "combined" (or should I say
> inheritable). Let's imagine I have:

> access "public" {
>     users "*"
>     read: "xxx.public, xxx.announcements"
>     post: "xxx.public"
> }

> access "user1" {
>     users: "joe"
>     read: "xxx.privat"
>     post: "xxx.privat, xxx.announcements"
> }

> I'd like Joe be able to read xxx.public and post to it, but without
> stating it in his read: and post: entries. Is there a way to make access
> "user1" inherit also what is true for access "public". Otherwise as the
> number of groups rises, configuring this will become a nightmare :/.

Unfortunately, no.  readers.conf doesn't handle fine-grained permission
sets for individual users that well; if you have fairly complex rules of
that type, you probably want to express them in Perl or Python instead and
use the embedded hooks for that.

> Is there a way to format read: or post: directives so that they tell
> "all groups *except* for ..."?

Yes:  *,!xxx.privat

-- 
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: <87vf6lje2g.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <pkt2o8fzvpq7.dlg@trybik.mamut.zax.pl>

Show Full Headers
Complete Article Headers
Message-ID: <87vf6lje2g.fsf@windlord.stanford.edu>
Subject: Re: INN: newbie questions
Date: Sun, 17 Apr 2005 14:20:07 -0700
From: Russ Allbery <rra@stanford.edu>
References: <pkt2o8fzvpq7.dlg@trybik.mamut.zax.pl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 80
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1113772807 8523 171.64.19.147 (17 Apr 2005 21:20:07
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:tiiVkeoGm1mJZfGWALnaC3YPKg8=