Hi all!
I wanna run 'useradd' shell command by php on the web. even it make some problems in security, wanna learn how can I do that.
I typed source like as following.
<?
system("./useradd test -p****",$result);
print $result;
?>
but, I had page that displays only "2".
'cause $result got string "2".
I guess it is problem on permission. so I've copied 'useradd' file to some anothername and change his owner to nobody:nobody or apache:apache. but I also doesn't worked.
How can I run shell commands like as this on permission problem?