note 82370 added to function.shell-exec

From: Date: Tue, 08 Apr 2008 15:35:17 +0000
Subject: note 82370 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-138023@lists.php.net to get a copy of this message
In response to nathandehert and Paul Cook, rather than sudoing to execute a command, you might want to abstract the command(s) into a yet another script (php, perl, bash, whatever) and make use of the setuid bit. then just execute that script from php. of course, bear in mind the security implications of setuid. ---- Server IP: 69.147.83.197 Probable Submitter: 65.106.220.162 ---- Manual Page -- http://www.php.net/manual/en/function.shell-exec.php Edit -- https://master.php.net/note/edit/82370 Del: integrated -- https://master.php.net/note/delete/82370/integrated Del: useless -- https://master.php.net/note/delete/82370/useless Del: bad code -- https://master.php.net/note/delete/82370/bad+code Del: spam -- https://master.php.net/note/delete/82370/spam Del: non-english -- https://master.php.net/note/delete/82370/non-english Del: in docs -- https://master.php.net/note/delete/82370/in+docs Del: other reasons-- https://master.php.net/note/delete/82370 Reject -- https://master.php.net/note/reject/82370 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138023) next »