Simple way for web to execute root shell script.

May 23, 2025 Last reply: 1 year ago 41 Replies

Doesnt find the drives. Looks like its found the CPU temp though Oh well. Thanks for trying

doas /path/to/shell.sh or sudo.

Things are going to be a bit more complicated if you're in chroot. A small C utility that wraps exec and provides suid should be ok.

Another way is to call the script form cron and place the output in some location where apache can get it.

Best regards, Chris Narkiewicz

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required