Hello,
Has anyone any idea how can i create unix users through PHP4 ? Have in mind that my web server is running as user httpd and group httpd.
I have tried popen("login","rw") so as to open a shell and login as a normal user and then "su -" to root user and create the user i want but although a valid pipe is returned that produces no output and accepts no input.
Then i tried to fsockopen("localhost",23,&$en,&$ed); so as to telnet to localhost but got the same as above.
last i tried to popen("telnet localhost","rw") i got the following response :
Trying 127.0.0.1 ...
Connected to localhost
Escape character is "]"
and then nothing more ... After that message there should be something like
Mandrake linux version .... etc
but the pipe gets closed right there.
Any ideas ?
My linux is mandrake 7.1 and php is 4.0.3pl1
Also tried on a Cobalt XTR and got the same results ...
Thank you
John L.