🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Jason Loven Wed, 01 May 1996 00:00
Time limit access to groups?
#7123
Author: Jason Loven
Date: Wed, 01 May 1996 00:00
17 lines
1068 bytes
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


Re: Time limit access to groups?
#7097
Author: 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

Re: Time limit access to groups?
#7116
Author: Daryl Gaumer
Date: Wed, 01 May 1996 00:00
22 lines
1332 bytes
Jason Loven (jloven@dfma.com) wrote:
: 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

You should kill all of the nnrpd processes after the new nnrp.access
file is put into place.  Since, they are using "stale" information.

-- darylg

Re: Time limit access to groups?
#7158
Author: Daryl Gaumer
Date: Thu, 02 May 1996 00:00
25 lines
1617 bytes
Dougal Campbell (dougal@vespucci.iquest.com) wrote:
<snip>
: 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 ;)

An alogrithm for this would be:
   - save the last modified time stamp associated with the open file
     descriptor (use stat() call on HP-UX the field is st_mtime in
     the struct stat).
   - use the fstat() call (periodicly) to compare the value in the
     st_mtime field.

-- darylg

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