Running shell scripts with sudo through my web app
Posted
by nfm
on Stack Overflow
See other posts from Stack Overflow
or by nfm
Published on 2010-06-08T06:09:50Z
Indexed on
2010/06/08
6:52 UTC
Read the original article
Hit count: 302
I have some functionality that interfaces with the server's OS in my web application. I've written a bash script and am able to run it from within my app.
However, some functionality of the script requires superuser privileges.
What is the most sane way to run this script securely? It is being passed arguments from a web form, but should only be able to be called by authenticated users that I trust not to haxxor it.
© Stack Overflow or respective owner