Liste des Groupes | Revenir à col misc |
The Natural Philosopher <tnp@invalid.invalid> writes:In the end setting a passwordless sudo for the www-data user for that script only, worked and was the first method to do so, so I stopped there.
I have a shell script that monitors hardware stuff - it needs to rundoas /path/to/shell.sh
as root and be called by Apache as user www.
or sudo.
Things are going to be a bit more complicated if you're in chroot.I have done that in the past.
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 outputI want very fast up to date response when I am on the web site and dont care when I am not, so that inclines towards a real time script.
in some location where apache can get it.
Best regards,--
Chris Narkiewicz
Les messages affichés proviennent d'usenet.