🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7097

Re: Time limit access to groups?

#7097
From: Dougal Campbell
Date: Wed, 01 May 1996 00:00
47 lines
2743 bytes
Jason Loven (jloven@dfma.com) proclaimed:
> I'd like to be able to limit access to certain groups to specific
> times of day. Basically we'd like to be able to insure that our users
> arent reading non-work-related groups during normal business hours.
> Though we would like to allow access to all groups during normal lunch
> hours.

> Anyone know if this is possible and/or how to do it?

> Possbilitity but seems like a hack to me...have cron copy a limited
> access nnrp.access into place during the limited-access hours and then
> copy in a full access nnrp.access during lunch/after-work.

> -Jason

Even that quick hack won't do what you want without some other
precautions.  I haven't double-checked this, but I'm willing to bet
that nnrpd only reads the nnrp.access file at connect-time.  So, there
are a couple of scenarios that break your scheme:

 1) connection started just before lunch: user can't read "prohibited"
groups during lunch, because initial connect was restricted.

 2) connection started during lunch, and maintained until after lunch
is over: user retains access to "prohibited" groups for the rest of the
day, and spends all day reading about home-brewed beer.

The quick hack extension solution would be a script that kills all the
existing nnrpds just after each replacement of the nnrp.access file.

Sure it's a hack, but it's a lot easier than trying to shoehorn
something more general and elegant into the INN code!  Though it
*might* be worthwhile to have the nnrpd code recheck the access file on
each newsgroup change (maybe even every article request), and see how
badly that degrades response.  This would keep your users from getting
angry about the disconnected nnrpd's that would happen two or three
times a day. The could complain about the sluggish command response,
instead ;)

--
Dougal Campbell      | "Quick to judge, quick to anger. |      Rush
System Administrator |  Slow to understand.             |  "Witch Hunt"
interQuest / Hsv, AL |  Ignorance and predjudice        | Moving Pictures
dougal@iquest.com    |  And fear go hand in hand."      |      1981

Technical Details
Message-ID: <4m8n9l$nad@polo.iquest.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.mbox.zip!not-for-mail
References: <4m7nrb$84s@antares.dfma.com>

Show Full Headers
Complete Article Headers
Message-ID: <4m8n9l$nad@polo.iquest.com>
Subject: Re: Time limit access to groups?
Date: Wed, 01 May 1996 00:00:00 +0000
From: dougal@vespucci.iquest.com (Dougal Campbell)
References: <4m7nrb$84s@antares.dfma.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.mbox.zip!not-for-mail
X-Deja-AN: 152480510
Distribution: inet
Organization: interQuest Online Services -- Huntsville, AL
Newsgroups: news.software.nntp