Sujet : Re: Simple way for web to execute root shell script.
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.os.linux.misc comp.sys.raspberry-piDate : 24. May 2025, 18:55:46
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2505241355@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.os.linux.misc, Richard Kettlewell <
invalid@invalid.invalid> wrote:
Standard Usenet style when you don't know how to solve someone's problem
(or didn't understand it) is to argue with their requirements instead.
To be fair, some questions really do provoke thoughts of "The only
reason you'd try to solve it that way is because of faulty requirement
expectations."
That's why I try to answer two ways, the way I'd do it for those
requirements, and the way I'd do it rewriting requirements.
In this case, I suggested running Apache as root, so all CGIs run as
root, and also running the root bit from cron and then reading output
with the CGI.
Elijah
------
if you don't know how to run things as root, maybe you should not do that