Deutsch   English   Français   Italiano  
<1012gbr$25pes$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: The Natural Philosopher <tnp@invalid.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Simple way for web to execute root shell script.
Date: Mon, 26 May 2025 20:44:58 +0100
Organization: A little, after lunch
Lines: 16
Message-ID: <1012gbr$25pes$1@dont-email.me>
References: <100pphq$2taj$2@dont-email.me> <1012843$amga$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 26 May 2025 21:44:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b8d1b2f1f230dfee74068bd3766419a0";
	logging-data="2287068"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19IO1PrszEolmypNPLf9j+mHtg6OtFcA3U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/cR8Gxks8ex55HOoRh+I0v03Ldg=
Content-Language: en-GB
In-Reply-To: <1012843$amga$1@solani.org>

On 26/05/2025 18:24, Dominik Ałaszewski wrote:
> Dnia 23.05.2025 The Natural Philosopher <tnp@invalid.invalid> napisał/a:
>> I have a shell script that monitors hardware stuff - it needs to run as
>> root and be called by Apache as user www.
> 
> One can consider communicating via files. Apache writes a file
> in a certain location (perhaps with the arguments for the script),
> script run (as root) is then triggered via inotify mechanism (one can utilise i.e. incron),
> the results are written to another file, readable by Apache.
> 
Why make stuff more complicated than it has to be?

-- 
Civilization exists by geological consent, subject to change without notice.
  – Will Durant