Re: Exec() command on UNIX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 1 Dec 2004 16:18:01 +0700, Sitthipong Thuetham <sitthbkk@xxxxxxx> wrote:
> Dear PHP support,
> 
> I have a question on an exec() command, if I would like to switch user right on Unix server, what command should I use?
> 
> example: on the UNIX shell will be like below
> $su root
> Password:'password'
> 
> but when I tried running exec() command on PHP, I couldn't do that
> exec("su root");
> 
> I can't sent a password thru the exec() command, any way to do that?


You might want to look at sudo, you can provide temporary root access
with no password.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux