simple php user administrator
I want to do a simple PHP code which makes possible to add user on my linux PC.
I just want to read the input from the PHP source (input) and call the shell_exec with useradd command.
something like this:
<?php
$name = "name";
$password = "password";
$command = "adduser ".$name." -p ".$password;
shell_exec($command);
?>
It is that possible??
I don't know if the command useradd will work this way. (it doesn't!)
Or there is any better (already existing) solution to manage the users on a linux server (slackware)??
|