[PHP] Exec() command on UNIX

2004-12-01 Thread Sitthipong Thuetham
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")

Re: [PHP] Exec() command on UNIX

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 16:18:01 +0700, Sitthipong Thuetham <[EMAIL PROTECTED]> 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 > Pass

Re: [PHP] Exec() command on UNIX

2004-12-01 Thread Richard Lynch
Sitthipong Thuetham wrote: > 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