Mike B Best
11-28-2001, 11:53 AM
Hi all,
I am runing a server and need to allow a php script to execute some cammands. I have tried changing the /etc/passwd so that wwwrun is the same group as root, but still nothing. Does anyone know how I can get php to do this? Just as a test I have been using
system("ls")
&
$l = exec("ls")
This works on windows, but suse does not like it. Any help gratefully appreciated.
Thanks
Mike
p.s. sorry about the lack of detail I didn't set up the server and I have no idea what has been put on. It doesn't need to be secure, otherwise I probably wouldn't be testing with wwwrun having root privilages, I am sure that must be a risk :)
I am runing a server and need to allow a php script to execute some cammands. I have tried changing the /etc/passwd so that wwwrun is the same group as root, but still nothing. Does anyone know how I can get php to do this? Just as a test I have been using
system("ls")
&
$l = exec("ls")
This works on windows, but suse does not like it. Any help gratefully appreciated.
Thanks
Mike
p.s. sorry about the lack of detail I didn't set up the server and I have no idea what has been put on. It doesn't need to be secure, otherwise I probably wouldn't be testing with wwwrun having root privilages, I am sure that must be a risk :)