🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Jim Jagielski Wed, 07 Aug 1991 13:22
possible addition to nn
#1955
Author: Jim Jagielski
Date: Wed, 07 Aug 1991 13:22
48 lines
3156 bytes
I've been thinking about, and working on (a little bit) a possible addition
(or modification) to nn. Basically, the modification would only be of use
for those of us who use NNTP and with NNTP_MINI_HEADERS defined. It simply
concerns a very picky item: the Message_ID:...

The default for nn is to write out the username, the time (in long seconds)
and then the host. Agreed that it's unique, but also agreed that it's kinda
ugly :)

My "modification" would simply be to have an auxiliary file that only includes
a number which is incremented each time a posting is made/attempted. This
number would then be used as the message ID number (along with the hostname,
'natch). This provides some idea on how many postings have been made as well
as being a little neater. Of course, there are a few implementation problems:

	1. Some sort of file-locking is required to prevent wrong results.
	   This would be easy to implement, though...

	2. To prevent regular users from fooling around with the file
	   (and thus confusing nn), it should be restricted so that regular
	   users can't read/write it. Of course, this means that nn will have
	   to be set sgid to the group that can, resulting in the whole mess
	   about suid/sgid programs... It would be made simpler if the group
	   in question had NO OTHER FUNCTION other than the group of nn
	   and the file (no user at all is group XXX and there are no files
	   or directories or anything with group XXX - except for nn and
	   the message-number file). This may not be a good administrative
	   solution. Most probably it would require nn be sgid to news and
	   then when execute() fork, restore the real user (for completeness)
	   and group ID's. Of course, the system calls (mainly in admin.c)
	   would be running sgid to news and there would be the concern about
	   other possible breaches running sgid news.

As you can see, it may not be worth it, but what the hell. I'll look into
it and post my results... Don't expect it for a while though :)

PS:  If you have any suggestions, please E-mail.

PPS: nn is great, ain't it :)
--
==============================================================================
#include <std/disclaimer.h>

           Jim Jagielski                    NASA/GSFC, Code 711.4
     jim@jagubox.gsfc.nasa.gov               Greenbelt, MD 20771

  "...there is no cannibalism in the British Navy. Absolutely none. And 
   when I say none, I mean there is a certain amount..."
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