running php script as a user?

running php script as a user?

am 15.07.2009 17:49:38 von 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

Re: running php script as a user?

am 21.07.2009 13:49:26 von Maximiliano Churichi

sudo -u user command

2009/7/15 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 exec=
ute
> a php schell script as that user to write some data to their /home/userna=
me
> directory. =A0Since 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
>
>



--=20
Maximiliano Churichi


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