note 109851 added to function.exec
| From: | Eyeillus at gmail dot com | Date: | Tue, 28 Aug 2012 03:33:13 +0000 |
| Subject: | note 109851 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190242@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 68.104.162.236
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/109851
Del: integrated -- https://master.php.net/note/delete/109851/integrated
Del: useless -- https://master.php.net/note/delete/109851/useless
Del: bad code -- https://master.php.net/note/delete/109851/bad+code
Del: spam -- https://master.php.net/note/delete/109851/spam
Del: non-english -- https://master.php.net/note/delete/109851/non-english
Del: in docs -- https://master.php.net/note/delete/109851/in+docs
Del: other reasons-- https://master.php.net/note/delete/109851
Reject -- https://master.php.net/note/reject/109851
Search -- https://master.php.net/manage/user-notes.php