Forum Moderators: coopster
Or maybe this can be set in the .htaccess file? Whenever abc.php runs it runs as "Someuser"?
thanks!
Ryan
try this:
su - Someuser -c "whatever command"
unless you are "root"(-like) it will ask for Someuser's password.
you could also look into ssh to avoid the password.
if you are trying to run your php script under apache as a different user you can use suexec but beware of security issues when configuring and using this.
<edit>
I knew there was someone asking about 666 a while ago...Iv just checked and it was you, so I guess this isnt very helpful for you. Sorry
[edited by: PHP_Chimp at 12:48 pm (utc) on Nov. 7, 2007]