Re: [PHP] running php script as a user?

2009-07-21 Thread Maximiliano Churichi
sudo -u user command

2009/7/15 Adam Williams awill...@mdah.state.ms.us:
 I have a page where a user authenticates, fills in some information in an
 HTML form, and then when clicking on the submit button, will need to execute
 a php schell script as that user to write some data to their /home/username
 directory.  Since apache web server runs as the user nobody, how will I have
 that script execute as that user so that it can write data to their home
 directory?


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Maximiliano Churichi
mchuri...@gmail.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] running php script as a user?

2009-07-15 Thread Adam Williams
I have a page where a user authenticates, fills in some information in 
an HTML form, and then when clicking on the submit button, will need to 
execute a php schell script as that user to write some data to their 
/home/username directory.  Since apache web server runs as the user 
nobody, how will I have that script execute as that user so that it can 
write data to their home directory?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php