note 109851 deleted from function.exec by aharvey
| From: | aharvey@php.net | Date: | Fri, 31 Aug 2012 06:47:29 +0000 |
| Subject: | note 109851 deleted from function.exec by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190296@lists.php.net to get a copy of this message | ||
Note Submitter: Eyeillus at gmail dot com
----
If you want to execute a sh script as root, in a more or less safe way, go here:
http://www.tuxation.com/setuid-on-shell-scripts.html
You can mark programs as "run as root," (usually it doesn't work for straight
scripts), which can then be run from a non-root account, and which can run script files as root. If
you're careful about what's in the script and who has access to it, I think it should be
safe. It works for me, by the way.