Article View: news.software.nn
Article #1955possible addition to nn
From: Jim Jagielski
Date: Wed, 07 Aug 1991 13:22
Date: Wed, 07 Aug 1991 13:22
48 lines
3156 bytes
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..."
Technical Details
Message-ID:
<76@jagubox.gsfc.nasa.gov>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!uunet!iggy.GW.Vitalink.COM!pacbell.com!ames!dftsrv!jagubox!jimShow Full Headers
Complete Article Headers
Message-ID: <76@jagubox.gsfc.nasa.gov> Subject: possible addition to nn Date: Wed, 07 Aug 1991 13:22:26 +0000 From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski) 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!uunet!iggy.GW.Vitalink.COM!pacbell.com!ames!dftsrv!jagubox!jim Newsgroups: news.software.nn Sender: news@dftsrv.gsfc.nasa.gov Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski) Organization: NASA/Goddard Space Flight Center Lines: 48