note 103999 added to function.exec

From: Date: Mon, 16 May 2011 15:52:35 +0000
Subject: note 103999 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-179760@lists.php.net to get a copy of this message
There are (perhaps insurmountable) difficulties when trying to execute sudo commands from a PHP script and from an external script called by PHP on SELinux enabled machines. SELinux won't let apache change the group id of the process by default. You may need to use another solution, like make the PHP script deposit a file in a directory which is monitored by cron or inotify and which will call another script with root privileges. ---- Server IP: 69.147.83.197 Probable Submitter: 78.105.174.214 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/103999 Del: integrated -- https://master.php.net/note/delete/103999/integrated Del: useless -- https://master.php.net/note/delete/103999/useless Del: bad code -- https://master.php.net/note/delete/103999/bad+code Del: spam -- https://master.php.net/note/delete/103999/spam Del: non-english -- https://master.php.net/note/delete/103999/non-english Del: in docs -- https://master.php.net/note/delete/103999/in+docs Del: other reasons-- https://master.php.net/note/delete/103999 Reject -- https://master.php.net/note/reject/103999 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179760) next »