🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8016

Re: nn and leafnode...

#8016
From: Kristian Köhntopp
Date: Wed, 20 Nov 1996 00:00
67 lines
2950 bytes
mtpins@icaen.uiowa.edu (Michael T Pins) writes:
>I suspect this was done as it's rather more efficient to hit the files
>directly rather than getting them via nntp.

True. But there is a problem with this approach, if you run
your INN with

##  Umask to set.
#### =()<NEWSUMASK              @<NEWSUMASK>@>()=
NEWSUMASK               0077
##  Mode that incoming articles are created under.
#### =()<ARTFILE_MODE           @<ARTFILE_MODE>@>()=
ARTFILE_MODE            0600

##  Mode that directories are created under.
#### =()<GROUPDIR_MODE          @<GROUPDIR_MODE>@>()=
GROUPDIR_MODE           0700

You have to use this file modes to force usage of NNRP. Under
NNRP you can use nnrp.access to create individual read and post
permissions per host or per user (nn does not support NNRP
user authentication with authinfo user|pass, though).

>As I've heard a number of
>gripes about this, I'll add a compile time option of somesort for those
>that need it.

Please make this a run-time option and think about
authinfo-Support, too. I have no time to prepare a patch, but a
run-time option for use_nntp should be easy. Just export a
preinitialized boolean variable "force_nntp" from nntp.c and
change nntp.c:nntp_check() from

    use_nntp = (strcmp(host, server_real_name) != 0);

    to something like

    use_nntp = (strcmp(host, server_real_name) != 0);
    /* force nntp usage even for local servers */
    if (force_nntp)
        use_nntp = 1;

Import force_nntp into variable.c at the appropriate place and
insert

    "force_nntp", BOOL 0, (char **)&force_nntp,

into the variable_defs array. That should do it.

Ah, and while you are at it, please make the pathname of the
aux script a STR SAVE 4 configurable variable
"aux_script_path", too. I thought this had been done before, but
it isn't there.


Authinfo-Support would be great, too, but is a slightly bigger
change if you want to do it right (for multiple servers with
remembered passwords).

Kristian
--
Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897
"Antworten bitte in die Newsgroup, da ich meine Mail nicht lese."
	-- Stefan Stapelberg <stefan@rent-a-guru.de>

Technical Details
Message-ID: <56ugmt$ct2@white.koehntopp.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <Pine.SOL.3.95.961118160251.27003A-100000@stiletto.acadian.net> <3291CDE6.30AD@dgtl.com> <56u2hf$an7@server05.icaen.uiowa.edu>

Show Full Headers
Complete Article Headers
Message-ID: <56ugmt$ct2@white.koehntopp.de>
Subject: Re: nn and leafnode...
Date: Wed, 20 Nov 1996 00:00:00 +0000
From: kris@koehntopp.de (Kristian Köhntopp)
References: <Pine.SOL.3.95.961118160251.27003A-100000@stiletto.acadian.net> <3291CDE6.30AD@dgtl.com> <56u2hf$an7@server05.icaen.uiowa.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 197611643
Distribution: inet
Organization: "Skating away on the thin ice of a new day."
Newsgroups: news.software.nn,news.software.nntp
X-copyright: (C) Copyright 1996 Kristian Koehntopp -- All rights reserved.