faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 28 people (18%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

How do you run a script as a certain user such as root?

Feb 27th, 2008 00:08
dman, John Marc, Doug Kozar, http://www.ttnr.org


On some systems, you can have a script owned by root, executable by 
apache (or whoever) and use the exec command to exectute it using :
php ascriptownedbyroot.php