🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89091

Re: Configuration file generator

#89091
From: Grant Taylor
Date: Mon, 17 Jan 2022 05:53
20 lines
1836 bytes
On 1/16/22 12:55 PM, Aioe wrote:
> At the same time it would be useful to ascertain whether it is a 
> security gamble nowadays to run a web server as user 'news' or to make 
> inn configuration files writable by user 'www-data'.

I would avoid doing that for that very reason if I were given a choice.

I'd likely use some sort of message passing.  As in have the web server 
record the desired changes somewhere and then have something, e.g. a 
cron job, running as the news user read the queued change request.

This would provide a modicum of isolation and allow the cron job to 
apply some sanity checking to the queued request.  This would also 
prevent the web server from having write access to other INN files.



-- 
Grant. . . .
unix || die
Technical Details
Message-ID: <ss3080$cd8$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <srua4n$21a2c$1@news.trigofacile.com> <ss1t72$un3$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <ss3080$cd8$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: Configuration file generator
Date: Sun, 16 Jan 2022 22:53:07 -0700
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <srua4n$21a2c$1@news.trigofacile.com> <ss1t72$un3$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: TNet Consulting
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Jan 2022 05:53:04 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="12712"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
In-Reply-To: <ss1t72$un3$1@gioia.aioe.org>
Content-Language: en-US
Lines: 19