🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #1494

Re: running nn several times with the same user account

#1494
From: Kim F. Storm
Date: Fri, 22 Mar 1991 14:52
47 lines
2623 bytes
jgabriel@mtecv2.mty.itesm.mx (Juan Gabriel Ruiz Pinto) writes:

>  I'm trying to install nn with a local Unix BBS, but I have the
>  next trouble, nn doesn't run more than one time with the same
>  userid. Could anybody tell me if there is some kind of configuration
>  where I can do that thing. I try with diferent newsrc files for
>  each BBS user, but the problem is the LOCK file in the ~/.nn 
>  directory. I don't know if I could remove that file every time
>  somebody runs nn, but what troubles has this?

First a short word on security:

The .newsrc file is very sensitive, and as such updates to this file
should be controlled as much as possible.  I know of no way to do
this if someone is using different news reader packages, but if
you only use nn, then nn will check that only ONE nn process is
running which may UPDATE .newsrc  (you can still run nn -x etc
even when another nn process has locked the .newsrc file).

So the .nn/LOCK file is there for a very good purpose.

Now, if you want to have more than one invocation of nn running
on the same user account, and you can control that each of these 
users really have separate .newsrc files, you could do without
the LOCK file - or can you?

What you would really need is a completely separate .nn directory
for each of the users, since there are other files in .nn which
are definitely 'private', e.g.
	select -- the file accompanying .newsrc to keep selections etc.
	LAST   -- file accompanying .newsrc to register last new group seen.
	kill   -- personal kill/select
	init   -- personal setup
	init   -- personal presentation sequence

So, really it is non-trivial to do this!

Except for one possible trick:

Change the value of "HOME" to point at separate directories where
.newsrc and .nn can reside - and where personal ~/News folders can
be stored etc.etc.  Then you can safely run with one user account
in separate environments.

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Technical Details
Message-ID: <778@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
References: <3058@mtecv2.mty.itesm.mx>

Show Full Headers
Complete Article Headers
Message-ID: <778@texas.dk>
Subject: Re: running nn several times with the same user account
Date: Fri, 22 Mar 1991 14:52:35 +0000
From: storm@texas.dk (Kim F. Storm)
References: <3058@mtecv2.mty.itesm.mx>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Organization: Texas Instruments, Denmark
Lines: 47