Article View: news.software.nntp
Article #70634Re: Multiple feeds on a SINGLE computer
From: Szymon Sokół
Date: Wed, 26 Jan 2005 08:36
Date: Wed, 26 Jan 2005 08:36
76 lines
4510 bytes
4510 bytes
Binary Nomad <binary-nomad@hotmail.com> wrote:
> Hello,
> Does anyone have any idea on how to accomplish this? Basically, the
> server will have groups of users like a normal Unix computer (i.e.
> groupadd), my objective is to let each group have their *own*
> newsfeed, completely separate from the other ones, so that people in
> each group can form their own newsgroups and post in them and so on.
> To make matters even more complex, I would like the ability to have
> say, a particular newsgroup shared between feeds, so messages posted
> to one would travel to the other feed, but on the same machine!
First, there seems to be some misunderstanding. You are talking about
feeds, but actually you don't seem to have any feeds. A "feed" is when
you transfer articles from one server to another. You say you want your
users to create newsgroups at will, so most probably you want local
hierarchies, and you probably won't feed them to any other server.
So now, the question is how to restrict access to certain hierarchies to
certain users only. That should be easy, I believe, using readers.conf
and appriopriate "auth" statement that should allow users to
authenticate with their own passwords. Something along the lines:
auth "allusers" {
hosts: "*"
auth: "ckpasswd -s"
}
access "brits" {
users: "bill,joe,mary,steven"
newsgroups: "local.uk.*"
}
access "germans" {
users: "hans,johann,wolfgang,helmut"
newsgroups: "local.de.*"
}
access "russians" {
users: "ivan,nikolai,boris"
newsgroups: "local.ru.*"
}
This may become cumbersome if you have dozens or hundreds of users in
each group, in such case I would recommend using perl_auth instead - in
Perl authentication scripts you can return username of your choice, so
it is possible to just check which Unix group the user is in - let's
say, it is "hans", who is in "germans" - and then return just "german"
instead of "hans"; in this way you could simplify you entries to:
access "germans" {
users: "german"
newsgroups: "local.de.*"
}
etc.
Granting permissions to create/delete groups is more tricky - I believe
the best way to do it is to have the users create their PGP keys, then
add their public keys to INN's keyring and make entries in control.ctl
for each hierarchy, explicitly allowing owners of particular keys to
perform actions in this hierarchy - like:
newgroup:hans@local.domain.com:local.de:*:verify-hans@local.domain.com
newgroup:johann@local.domain.com:local.de:*:verify-johann@local.domain.com
newgroup:ivan@local.domain.com:local.ru:*:verify-ivan@local.domain.com
etc., or alternatively create a key for each group, then give a private
key to all users in that group:
newgroup:*@local.domain.com:local.de.*:verify-german-group
newgroup:*@local.domain.com:local.ru.*:verify-russian-group
--
Szymon Sokół (SS4004,SS316-RIPE) -- Network Manager B
Computer Center, University of Mining and Metallurgy, Cracow, Poland. O
http://2510053385/~szymon/ PGP key id: RSA: 0x61094A7D, DSS: 0xF9289982 F
"That was a waste of a perfectly good explanation." - Jack O'Neill, SG-1 H
Technical Details
Message-ID:
<ct7kr4$83u$1@galaxy.uci.agh.edu.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!opal.futuro.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!not-for-mailReferences:
<60f8fe7a.0501252007.24a9f67e@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <ct7kr4$83u$1@galaxy.uci.agh.edu.pl>
Subject: Re: Multiple feeds on a SINGLE computer
Date: Wed, 26 Jan 2005 08:36:52 +0000
From: Szymon Sokół <szymon@bastard.operator.from.hell.pl>
References: <60f8fe7a.0501252007.24a9f67e@posting.google.com>
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!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!opal.futuro.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Mining & Metallurgy
Lines: 76
Sender: Szymon Sokol <szymon@hell.pl>
NNTP-Posting-Host: hell.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
X-Trace: galaxy.uci.agh.edu.pl 1106728612 8318 149.156.96.35 (26 Jan 2005
X-Complaints-To: usenet@uci.agh.edu.pl
NNTP-Posting-Date: Wed, 26 Jan 2005 08:36:52 +0000 (UTC)
Cancel-Lock: sha1:TcwvmUsSxiDJV+MnN/efZcU+xIw=
User-Agent: tin/1.7.6-20040906 ("Baleshare") (UNIX) (Linux/2.6.8 (i686))