🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
19 messages
19 total messages Started by Binary Nomad Wed, 26 Jan 2005 04:07
Multiple feeds on a SINGLE computer
#70631
Author: Binary Nomad
Date: Wed, 26 Jan 2005 04:07
21 lines
1877 bytes
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!
I would NOT like to run Virtual Machine software of any kind, like
Bochs or VMWare, or what have you, that's much more overhead than I
need. I just need a way for a feed to restrict itself to a group of
users on the system.

Does anyone have any suggestions? I know INN roughly, but am far from
being an expert :)


Thanks for all your help,

The Nomad.
Re: Multiple feeds on a SINGLE computer
#70634
Author: Szymon Sokół
Date: Wed, 26 Jan 2005 08:36
76 lines
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
Re: Multiple feeds on a SINGLE computer
#70637
Author: Jeffrey M. Vinocur
Date: Wed, 26 Jan 2005 12:25
21 lines
1871 bytes
In article <ct7kr4$83u$1@galaxy.uci.agh.edu.pl>,
Szymon Sokó³  <szymon@bastard.operator.from.hell.pl> wrote:
>
>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.

Yup, definitely can be done.  There's also the "virtualhost"
support (see readers.conf man page) if you really want to make
them look different.

BTW, this is something that perl_access / python_access can do
really well (if you have a large number of user classes, and
don't want to enumerate them all in readers.conf, or want to
allow users to be members of multiple classes).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70647
Author: binary-nomad
Date: Fri, 28 Jan 2005 17:42
22 lines
1930 bytes
> "That was a waste of a perfectly good explanation." - Jack O'Neill,
SG-1     H

Hello again,

Actually on thinking it over, your method is not sufficient. What if
the Germans had a newsgroup, say, "local.beerlovers"  and the Russians
had a group with the SAME NAME, "local.beerlovers". The Russian group
should be separate from the German group.
The method you've outlined above will not hide the fact that underlying
it all, it's actually the same group, just with different permissions
according to who can access it.

I meant what I said about multiple FEEDS.
Any more thoughts?




The Nomad.
Re: Multiple feeds on a SINGLE computer
#70648
Author: Jeffrey M. Vinocur
Date: Fri, 28 Jan 2005 17:51
35 lines
2505 bytes
In article <1106934175.549199.132820@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>
>Actually on thinking it over, your method is not sufficient. What if
>the Germans had a newsgroup, say, "local.beerlovers"  and the Russians
>had a group with the SAME NAME, "local.beerlovers". The Russian group
>should be separate from the German group.
>The method you've outlined above will not hide the fact that underlying
>it all, it's actually the same group, just with different permissions
>according to who can access it.

Yes, this was the point I was intending to make in my post.  (The
obvious suggestion is simply to give groups different names; very
often internal hierarchies are called something other than
local.* -- even when they're not distributed publically.  I find
it hard to believe the benefit of having groups with the same
name will justify the amount of trouble you'll have to do to set
this up.)


>I meant what I said about multiple FEEDS.
>Any more thoughts?

If you truly have a requirement for multiple groups of users
seeing groups with the same name but different contents, then you
may need to run multiple copies of a news server.  Certainly with
INN you would.

(You could run multiple copies on the same machine either by
having multiple IP addresses, or by binding to different ports.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70650
Author: Szymon Sokół
Date: Fri, 28 Jan 2005 17:53
23 lines
2506 bytes
binary-nomad@hotmail.com wrote:

: > "That was a waste of a perfectly good explanation." - Jack O'Neill,
: SG-1     H

: Hello again,

: Actually on thinking it over, your method is not sufficient. What if
: the Germans had a newsgroup, say, "local.beerlovers"  and the Russians
: had a group with the SAME NAME, "local.beerlovers". The Russian group
: should be separate from the German group.

Yes, that's what I said. They CANNOT have the same name, that's why I used
names like local.ru.beerlovers and local.de.beerlovers.

Otherwise you need separate newsservers. They can run on the same machine,
of course, but that would greatly complicate things.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: Multiple feeds on a SINGLE computer
#70653
Author: binary-nomad
Date: Sat, 29 Jan 2005 02:05
37 lines
2770 bytes
>
> If you truly have a requirement for multiple groups of users
> seeing groups with the same name but different contents, then you
> may need to run multiple copies of a news server.  Certainly with
> INN you would.
>

Is there an alternative? How good is it/they?

> (You could run multiple copies on the same machine either by
> having multiple IP addresses, or by binding to different ports.)
>

Is there documentation somewhere that explains how to do this? I've
Googled for quite a while but this is a pretty rare concept, it seems.
Naturally, this would limit the number of daemons to the number of
ports free on that machine, yes, it's probably not a worry in the real
world, but somehow, it's the concept of *being* limited that gets to
me. Is there *any* conceivable way around it? How does Apache do
multiple websites on one computer? Can't that technique be extended
here?
Isn't there simply a way to tell INNd to switch to a different
directory for its files, depending on the username of who's connecting
to it? :) that would be so simple a method! What about the
"virtualhost" directive up there? Is just changing the posting headers
etc. all it's limited to?

The answer is either fantastically simple, or incredible long winded,
and LABORIOUS!

(I really hope it's the first! :) ).
I wait to hear your thoughts,



The Nomad.
Re: Multiple feeds on a SINGLE computer
#70652
Author: Jeffrey M. Vinocur
Date: Sat, 29 Jan 2005 23:03
94 lines
4767 bytes
In article <1106964312.140308.231380@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>>
>> If you truly have a requirement for multiple groups of users
>> seeing groups with the same name but different contents, then you
>> may need to run multiple copies of a news server.  Certainly with
>> INN you would.
>>
>
>Is there an alternative? How good is it/they?

There are lots of news servers (see the "servers" section of
http://www.newsreaders.com/).  I've never used anything but INN
myself.

And I'd be surprised if any server had the feature you're looking
for -- it's a pretty fundamental concept that the newsgroup name
uniquely identifies a collection of articles.  In general, server
software authors will depend on that to be true.


>> (You could run multiple copies on the same machine either by
>> having multiple IP addresses, or by binding to different ports.)
>
>Is there documentation somewhere that explains how to do this? I've
>Googled for quite a while but this is a pretty rare concept, it seems.

Yeah, I've never heard of anyone wanting the behavior you
describe in all the years I've been doing this.  I think I can
recall people wanting to run two copies of INN on the same
machine, maybe, but that's it.

I believe that all the necessary information is included in the
INN documentation; try reading about ./configure --with-innd-port
in INSTALL, "port" and "bindaddress" in inn.conf(5), and -p in
nnrpd(8).  You'd obviously need two sets of INN config files;
and since some of the paths are compiled into the binaries and
scripts, probably the easiest thing to do is to have two separate
source trees (and pass different --prefix options to
./configure).


>Naturally, this would limit the number of daemons to the number of
>ports free on that machine, yes, it's probably not a worry in the real
>world, but somehow, it's the concept of *being* limited that gets to
>me.

In the real world, I think the memory overhead of all those
copies of INN will get you long before you run out of ports.


>Is there *any* conceivable way around it? How does Apache do
>multiple websites on one computer? Can't that technique be extended
>here?

Nope.  This was so visibly a problem in HTTP/1.0, that in
HTTP/1.1 they made it possible for the client to tell the server
what hostname it wanted (even if all the hostnames resolve to the
same IP address).  There's nothing like this in NNTP, so the
server has to guess based on client IP address and authentication
username (if any).

Now, INN can do some very powerful things based on this
information (see readers.conf(5)).  However, making newsgroups
change names based on who's connecting is not one of them,
because this just isn't something that people do.

I don't understand why you can't name the newsgroups different
things.  (Note that, in the scheme you've proposed, there's no
way for a user to be a member of more than one group -- since all
the newsgroups have the same name, any user can only see one of
them.)


>Isn't there simply a way to tell INNd to switch to a different
>directory for its files, depending on the username of who's connecting
>to it?

No.


>What about the "virtualhost" directive up there? Is just
>changing the posting headers etc. all it's limited to?

Yes.

This is something that an NNTP provider could use if it wanted
ISPs to resell its service -- the users of each ISP think they're
really connecting to that ISP's news server.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70657
Author: binary-nomad
Date: Sun, 30 Jan 2005 19:30
113 lines
5549 bytes
> I believe that all the necessary information is included in the
> INN documentation; try reading about ./configure --with-innd-port
> in INSTALL, "port" and "bindaddress" in inn.conf(5), and -p in
> nnrpd(8).  You'd obviously need two sets of INN config files;
> and since some of the paths are compiled into the binaries and
> scripts, probably the easiest thing to do is to have two separate
> source trees (and pass different --prefix options to
> ./configure).
>

Some of the paths are *COMPILED INTO THE BINARIES AND SCRIPTS* ? What
kind of *inane* programming is that?!!!! It's quite good that you told
me, because I would have mucked around for a long while before it hit
me, because that's something that I would simply never have expected!!!
Such things are NEVER supposed to be hardcoded into the thing. There is
a goddamn REASON that separate files exist for configging - to make it
bloody CONFIGURABLE!

>
> In the real world, I think the memory overhead of all those
> copies of INN will get you long before you run out of ports.
>

That shouldn't be the case.....? Linux has a lot of work on this,
doesn't it...? Every extra copy should not add more than a couple of
*K* to the RAM...? If it does, something is fucked up! Again, it's good
to converse with someone with real world experience of this!


> Nope.  This was so visibly a problem in HTTP/1.0, that in
> HTTP/1.1 they made it possible for the client to tell the server
> what hostname it wanted (even if all the hostnames resolve to the
> same IP address).  There's nothing like this in NNTP, so the
> server has to guess based on client IP address and authentication
> username (if any).
>
> Now, INN can do some very powerful things based on this
> information (see readers.conf(5)).  However, making newsgroups
> change names based on who's connecting is not one of them,
> because this just isn't something that people do.
>

I think there's a bit of a misunderstanding. What do you mean by
"making newsgroups change names?" There's no trickery going on, they
ARE separate groups, like I said above. Maybe you've got a little
confused? :) (I admit, it IS pretty confusing. I have problems
sometimes visualising the whole thing in my OWN head, and exactly what
it is I'm wanting).
Can you elaboratea bit more on the "very powerful things"? I will read
the page, obviously, but what is it you were talking about?


> I don't understand why you can't name the newsgroups different
> things.  (Note that, in the scheme you've proposed, there's no
> way for a user to be a member of more than one group -- since all
> the newsgroups have the same name, any user can only see one of
> them.)
>

Right, from the top.

Unix user group: russians
Members (usernames):  bogdanovich, vodkavich, beerovich

They start their own feed, with an INNd running on, say, 10000.
This comprises the newsgroups that THEY have started, and are members
of:

"local.beerlovers"
"local.vodkalovers"
"local.waystoremoveice"

Each group has several threads in them, bogdanovich, vodkavich and
beerovich can post and read to any of them.


There is ALSO a Unix user group, germans, on the same machine. *They*
have an INNd running on 10001 with various groups that they have
created.

bog, vodka and beer are NOT allowed to post or read here. (But the list
OF the groups themselves will probably be open).

However, beerovich sees the group and the newsgroups that they've
created, and decides he wants to join, cause the german
"local.beerlovers" looks good!

So he contacts a member (or moderator) of "germans", and the password
is given, and they add him to the group.

So, the Unix user group "germans" now has, as members:

hans, greta, dierk, beerovich.

They can ALL read and post to
"local.oktoberfest"
"local.ilovesausages"
etc.


Phew! :)

All clear? :)

(that helped me to sort it out in my own mind, actually, so thanks! :)
),



Any more suggestions with how to run all those copies of INN?
The Nomad.
Re: Multiple feeds on a SINGLE computer
#70656
Author: Paul Tomblin
Date: Sun, 30 Jan 2005 19:43
21 lines
2435 bytes
In a previous article, binary-nomad@hotmail.com said:
>Some of the paths are *COMPILED INTO THE BINARIES AND SCRIPTS* ? What
>kind of *inane* programming is that?!!!! It's quite good that you told

You know, at some point a less arrogant person than you would step back
and say "This system has been used at thousands of sites for over a dozen
years, and maybe, just maybe, the people who wrote, maintained and managed
this thing might know a touch more about these things than I do".  Maybe
even you will grow up and see the light, but I don't see it happening any
day soon.

Why don't you just admit what everybody responding to you so far has been
skirting around:  Your so-called requirements are stupid.  Give each of
your groups a separate sub-heirachy and do it in one news server.  It
would take you less time to set it up that way than you've spent whinging
about how hard it is to do it your way.

-- 
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
'Usenet "belongs" to those who administer the hosts of which it is comprised'
 - RFC 1036, draft revision
Re: Multiple feeds on a SINGLE computer
#70658
Author: Jeffrey M. Vinocur
Date: Mon, 31 Jan 2005 03:19
132 lines
6059 bytes
In article <1107113422.781275.149070@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>
>Some of the paths are *COMPILED INTO THE BINARIES AND SCRIPTS* ? What
>kind of *inane* programming is that?!!!!

Just so you know, I'm about this far

    --->  <--- 

from ignoring you henceforth.  You've asked for our time without
doing adequate research yourself, speak definitively and
insultingly about implementation decisions involving factors
you're unfamilar with, have been unwilling to listen to advice,
and generally don't make me very interested in helping you.


>Such things are NEVER supposed to be hardcoded into the thing. There is
>a goddamn REASON that separate files exist for configging - to make it
>bloody CONFIGURABLE!

Tell me, how does the binary know where to find the config file?
You've only got a few options:

- config file is located in the same file as the binary

- config file is located in a fixed location

- config file must be in the current working directory from which
  you run the binary

- path to the config file is passed to the binary on the command
  line, every time you run the binary

- an environment variable is set to contain the path to the
  config file


Now, I've seen programs use almost all of these methods.  I'm
pretty familiar with INN, and the only ones that could possibly
be used fruitfully are to hardcode the path, and to set an
environment variable.  Considering how many unix programs make
the same decision, I don't think you should be that surprised.


>> In the real world, I think the memory overhead of all those
>> copies of INN will get you long before you run out of ports.
>
>That shouldn't be the case.....? Linux has a lot of work on this,
>doesn't it...? Every extra copy should not add more than a couple of
>*K* to the RAM...? If it does, something is fucked up!

The operating system may be able to share copies of the binaries,
sure (but then, a stripped innd on my system is only 376 K
anyway).  However, the internal databases are most of the memory
use, and they will differ between different instances.


>> Now, INN can do some very powerful things based on this
>> information (see readers.conf(5)).  However, making newsgroups
>> change names based on who's connecting is not one of them,
>> because this just isn't something that people do.
>
>I think there's a bit of a misunderstanding. What do you mean by
>"making newsgroups change names?" There's no trickery going on, they
>ARE separate groups, like I said above. Maybe you've got a little
>confused?

You said:

    What if the Germans had a newsgroup, say, "local.beerlovers" and
    the Russians had a group with the SAME NAME, "local.beerlovers".
    The Russian group should be separate from the German group.

This is a crazy requirement, and the only way a single newsserver
could implement it is to have a single name refer to a different
group depending on who is connecting.

And if I'm confused, it's because you're miserably unclear,
self-contradictory, and use terminology in ways that are
blatently incorrect.


>Can you elaboratea bit more on the "very powerful things"? I will read
>the page, obviously, but what is it you were talking about?

If you weren't so rigid in your requirements, this could all be
done with a -trivial- readers.conf.  Honest.


>[...]
>bog, vodka and beer are NOT allowed to post or read here. (But the list
>OF the groups themselves will probably be open).

>However, beerovich sees the group [...]

This would be massively inconvenient for your users -- no
newsreading software is going to understand the concept of
multiple separate groups with the same name, except by making the
user add a distinct newsreader config for each collection of
groups.  So you'd have to keep a list for your users of all the
different groups and how to find them...there's no newsreader in
the world that will let you "browse" a range of ports in any easy
way.


>Any more suggestions with how to run all those copies of INN?

Don't.  It's a dumb idea.  What you've described is a perfectly
straightforward thing to do with a single copy of INN (using
readers.conf and a tiny access script that you can practically
copy of the documentation), if you'd just let the groups be
named:

    local.russians.beerlovers
    local.russians.vodkalovers
    local.russians.waystoremoveice
    ...
    local.germans.beerlovers
    local.germans.oktoberfest
    local.germans.ilovesausages
    ...

You haven't given a single rational objection to this
configuration, and I'm not planning on spending hours helping you
set up multiple INNs on multiple ports for a configuration that
you can't even justify.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70661
Author: binary-nomad
Date: Mon, 31 Jan 2005 05:39
112 lines
6004 bytes
> You haven't given a single rational objection to this
> configuration, and I'm not planning on spending hours helping you
> set up multiple INNs on multiple ports for a configuration that
> you can't even justify.

OK, no need to get hot-headed. Please realise that you probably do this
full time and for a living, and I'm just finding out and experimenting
with various things, and am VERY new to it, like I said. I am
definitely researching, and it's now 5 n the morning, so if I blow my
top and swear, well...... I'm only human.

----> You're probably used to adminning a *Usenet* server  <-----

--------> I merely want to use NNTP for my OWN purposes <--------
(which are *somewhat* close to the Usenet system, but NOT the same
thing)!


>if you'd just let the groups be
>named:
>
>    local.russians.beerlovers
>    local.russians.vodkalovers
>    local.russians.waystoremoveice
>    ...
>    local.germans.beerlovers
>    local.germans.oktoberfest
>    local.germans.ilovesausages
>    ...
>
>You haven't given a single rational objection to this
>configuration,


>and the only way a single newsserver
>could implement it is to have a single name refer to a different
>group depending on who is connecting.


I have no objections - this is the best possible solution to the whole
thing!

But in the second part, something is needed as well!

If a *Russian* connects to the server, they must see their groups as
"beerlovers", "vodkalovers" and "waystoremoveice", ie. with
"local.russian" stripped. No exceptions. This is the objective of the
whole thing. No one person connecting to the server will see the whole
thing, no newsreaders doing ANYTHING is needed. I was in fact thinking
of much crazier stuff, with xinetd, to pass it to an appropriate INND
depending on authentication, etc. so no "port scan", but never mind,
that's not needed now anyway.

There is no problem with having the underlying groups have
"local.russians" whatever, and having distinct groups with the same
name is absolutely impossible (no need to TELL me, you know, I did, in
fact, guess this without you), **as long as we can hide it from the
appropriate user**.

The only other solution would be multiple ports, xinetd/tcpd/whatever
wrappers, and unless I'm not mistaken, tampering with the xinetd source
code itself, loooooong configuration and a general bloody mess which I
wouldn't like to do, yes! This is no fun for me! Seriously!

Right, so is there a hook for authentication? There must be, in fact
that's what perl_auth and whatever does, right? The question of how to
tamper with the names.... isn't some simple piping and sed/awk -ish
stuff enough? The NNTP commands involving newsgroup names are not that
many, could this work?
But these simple tools are probably not enough - this thing requires
*architecting*, and if what I'm thinking is right, will probably
require everyones *end-to-end* amount of Unix knowledge to get done.

Since I'm groggy and cant compose properly, here's a free-flow of what
I'm thinking:
1. Tamper with the kernel to monitor file-reads, and place some kind of
"buffer-cache" which will translate names on the fly.
2. every connection from a reader gets its own INNd, yes? i just
discovered that "mount" *replaces* the contents of a directory. so why
not use a ramdisk mounted under /var/lib/news or whatever, the contents
of which will be the actual /var/lib/news but with changed names.
(basically the same idea, but wont have to write kernel code!! :) ).
Obviously, the problem is how do you read from the DISK /var/lib/news
WITH the ramdisk mounted, no easy solution is springing to mind.

Hey, *I* like challenges. I hope you do too, Gentlemen.


Right, Jeffrey, appreciate your help a lot mate. You'll DEF be in the
credits when this thing gets running :)

To the guy above, I never said I knew more than anyone. That was how I
STARTED - "I'm new to INN". If there's one thing I can't stand, it's a
constipated academic with their head stuck up their ass. Try to
understand, there are people as intelligent as you, but are actually
IMAGINATIVE! I'm actually *saying* something, not rambling on and
having my fingers pain for no reason

So, it's quarter to six, I will now SLEEP and resume discussion after
my head feels better. Talk to everyone tomorrow! :)


Just out of curiosity, what would be unworkable about passing args to
INNd on the cmd line?





Ze KNOWMAD.
Re: Multiple feeds on a SINGLE computer
#70663
Author: Jeffrey M. Vinocur
Date: Mon, 31 Jan 2005 14:20
89 lines
4706 bytes
In article <1107149942.736616.224780@f14g2000cwb.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>
>OK, no need to get hot-headed. Please realise that you probably do this
>full time and for a living [...]

No, actually, I do this as hobby in the few minutes I can spare
each day, because otherwise most questions in news.software.nntp
go unanswered.


>----> You're probably used to adminning a *Usenet* server  <-----
>
>--------> I merely want to use NNTP for my OWN purposes <--------
>(which are *somewhat* close to the Usenet system, but NOT the same
>thing)!

I'm quite aware of the difference.  However, if you're planning
on having your users use existing newsreader software, you're
going to have to deal with a number of aspects of Usenet that
(even if not part of NNTP per se) have been so widely agreed upon
for so many years that they may as well be standardized.


>If a *Russian* connects to the server, they must see their groups as
>"beerlovers", "vodkalovers" and "waystoremoveice", ie. with
>"local.russian" stripped. No exceptions. This is the objective of the
>whole thing.

This is the requirement you haven't explained.  I'm curious to
hear your explanation, but as I said before, this requirement is
going to require orders of magnitude more work than doing in the
the usual way, so you're going to have to do better of convincing
me than the above paragraph.


>There is no problem with having the underlying groups have
>"local.russians" whatever, and having distinct groups with the same
>name is absolutely impossible (no need to TELL me, you know, I did, in
>fact, guess this without you), **as long as we can hide it from the
>appropriate user**.

If you -could- do that, then no user could be a member of both
"russians" and "germans" because there would be two "beerlovers"
groups.


>But these simple tools are probably not enough - this thing requires
>*architecting*, and if what I'm thinking is right, will probably
>require everyones *end-to-end* amount of Unix knowledge to get done.

I get the impression you're way over your head here.  I think you
need to do a local install of INN and play around with it before
going further.


>1. Tamper with the kernel to monitor file-reads, and place some kind of
>"buffer-cache" which will translate names on the fly.

Won't work.  INN's internal architecture will not function with
such a modification.


>2. every connection from a reader gets its own INNd, yes? i just
>discovered that "mount" *replaces* the contents of a directory. so why
>not use a ramdisk mounted under /var/lib/news or whatever, the contents
>of which will be the actual /var/lib/news but with changed names.

INN requires a long-running server process to maintain the state
of on-disk databases.  The above doesn't get you anywhere.


>Just out of curiosity, what would be unworkable about passing args to
>INNd on the cmd line?

INN has about a hundred different binaries and scripts that work
in harmony, some calling each other, some called out of crontab,
some run manually by the administrator (who might use a dozen
different commands multiple times each in the space of an hour,
and is surely not interested in typing the path to the main
config file on every one of those command lines).  The complexity
of infrastructure required and the inconvenience to the
administrator are both substantial, and the benefit is of
debatable importance in the real world.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70668
Author: binary-nomad
Date: Tue, 01 Feb 2005 02:15
47 lines
2804 bytes
>
> This is the requirement you haven't explained.  I'm curious to
> hear your explanation, but as I said before, this requirement is
> going to require orders of magnitude more work than doing in the
> the usual way, so you're going to have to do better of convincing
> me than the above paragraph.
>

The explanation? :) Okay,..... I want to, how shall I put this....
Solidify the term "Cyberspace". I literally want to have a place for
every person inside the computer. What Quake, etc. do visually, I'm
interested in more, psychologically.


>
> If you -could- do that, then no user could be a member of both
> "russians" and "germans" because there would be two "beerlovers"
> groups.
>

I don't follow you, but that could be because my brain is still a
little fried. What precludes someone from joining both (user) groups?
They would become members of both beerlovers groups......?


> I get the impression you're way over your head here.  I think you
> need to do a local install of INN and play around with it before
> going further.
>

Done a long time ago. Do you really think I was just sitting around
having *conversations*? :)

I *could* be over my head, considering I don't actually KNOW what'll be
needed.
And I also could not be.



OK, you have your explanations.
Do you have some solutions?




The Nomad.
Re: Multiple feeds on a SINGLE computer
#70667
Author: rone
Date: Tue, 01 Feb 2005 02:59
17 lines
1731 bytes
In article <1107224102.747268.33740@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>The explanation? :) Okay,..... I want to, how shall I put this....
>Solidify the term "Cyberspace".
[...]
>I don't follow you, but that could be because my brain is still a
>little fried.
[...]
>Do you have some solutions?

You're a bright young man, James.  Just lay off the sauce.

rone
-- 
Remember
Remember
It's tilted
Re: Multiple feeds on a SINGLE computer
#70669
Author: Jeffrey M. Vinocur
Date: Tue, 01 Feb 2005 03:44
69 lines
3536 bytes
In article <1107224102.747268.33740@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>>
>> This is the requirement you haven't explained. [...]
>
>The explanation? :) Okay,..... I want to, how shall I put this....
>Solidify the term "Cyberspace". I literally want to have a place for
>every person inside the computer. What Quake, etc. do visually, I'm
>interested in more, psychologically.

Uhhhhhhhhh.  And the presence or absence of "local.russians." on
the front of a newsgroup name is going to affect this?

You're going to have to make a better case than that, from my
point of view.


>> If you -could- do that, then no user could be a member of both
>> "russians" and "germans" because there would be two "beerlovers"
>> groups.
>
>I don't follow you, but that could be because my brain is still a
>little fried. What precludes someone from joining both (user) groups?
>They would become members of both beerlovers groups......?

Well, the newsreader software says to the server, "I want the
list of articles for the group `beerlovers'."  If the user that
has authenticated is a member of both beerlovers groups, then how
does the server know which set of articles the newsreader is
asking for?

And for that matter, how does the interface of the newsreader
present these two groups to the user?  They both have the same
name...

And, perhaps you could refrain from posting to usenet while your
brain is a little fried?  You might consider it a courtesy to the
rest of us.


>> I get the impression you're way over your head here.  I think you
>> need to do a local install of INN and play around with it before
>> going further.
>
>Done a long time ago. Do you really think I was just sitting around
>having *conversations*? :)

Well, it sounds like it from here.


>I *could* be over my head, considering I don't actually KNOW what'll be
>needed.
>And I also could not be.

This is one of those "if you have to ask..." situations, I think.


>OK, you have your explanations.
>Do you have some solutions?

The only remotely reasonable solution is to make the newsgroups
have different names.  Either put them in subhierarchies, or
let whichever groups claims the name first have it and make any
later group use a different name.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Multiple feeds on a SINGLE computer
#70670
Author: Klaas
Date: Tue, 01 Feb 2005 05:39
12 lines
1846 bytes
 binary-nomad@hotmail.com wrote:

> The explanation? :) Okay,..... I want to, how shall I put this....
> Solidify the term "Cyberspace". I literally want to have a place for
> every person inside the computer. 

I take it one of your pet peeves is not people who use the word 
'literally' to mean its antonym ('figuratively'), eh?

Sorry for being pedantic.

-Mike
Re: Multiple feeds on a SINGLE computer
#70672
Author: rone
Date: Wed, 02 Feb 2005 06:05
17 lines
1871 bytes
In article <usenetmail-87D9B8.21394331012005@host170.octanews.net>,
Klaas  <usenetmail@klaas.ca> wrote:
> binary-nomad@hotmail.com wrote:
>> The explanation? :) Okay,..... I want to, how shall I put this....
>> Solidify the term "Cyberspace". I literally want to have a place for
>> every person inside the computer. 
>I take it one of your pet peeves is not people who use the word 
>'literally' to mean its antonym ('figuratively'), eh?

I took him at his word.  I figured that he picked a bad week to stop
sniffing glue.

rone
-- 
Remember
Remember
It's tilted
Re: Multiple feeds on a SINGLE computer
#70677
Author: Szymon Sokół
Date: Thu, 03 Feb 2005 11:35
34 lines
3355 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:
: In article <1107149942.736616.224780@f14g2000cwb.googlegroups.com>,
:  <binary-nomad@hotmail.com> wrote:

[----]
: >If a *Russian* connects to the server, they must see their groups as
: >"beerlovers", "vodkalovers" and "waystoremoveice", ie. with
: >"local.russian" stripped. No exceptions. This is the objective of the
: >whole thing.

: This is the requirement you haven't explained.  I'm curious to
: hear your explanation, but as I said before, this requirement is
: going to require orders of magnitude more work than doing in the
: the usual way, so you're going to have to do better of convincing
: me than the above paragraph.

I believe it could be done without modyfying anything else than nnrpd,
however it would be a substantial work - nnrpd would have to translate
newsgroup names in headers of all postings, both while reading and posting,
and also in parameters and results of commands like GROUP and LIST, based on
the group membership of the authenticated user. I mean, do something like:
s/local.$usergroup// for all outgoing data, and the reverse for all
incoming data.

Unfortunately, this does not solve the problem of multiple group membership,
because this one is unsolvable. But assuming that no user needs to be in
more than one group, this could be done. As an interesting but futile
exercise in programming - I do not see any reason to actually do it.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads