Re: [PHP-INST] New User Creation.

2003-07-18 Thread Stratsimir Kolchevski
I suppose that your web server is running with non-privileged user. In this case you have to use sudo (man sudo). Also you have to make some checks like if (ereg("[|;,:`'\\\"]", $_POST[PASSWORD]) || ereg("[|;,:`'\\\"]", $_POST{USERNAME])) { die "Invalid username or password."; } Remember that

RE: [PHP-INST] New User Creation.

2003-07-18 Thread Rajendra Kumar
hello Mr. Thomas, thanks for the quick reply. i implimented your code. let me know what's wrong with my code. newuser.htm: html head body form action = "signup.php" method = post Username: input type = text size = 30 name = "USERNAME" Password: input type = password size = 30 name = "PASSWORD

RE: [PHP-INST] New User Creation.

2003-07-18 Thread Thomas
Try checking out the exec() function http://us4.php.net/manual/en/function.exec.php Should start out with 3 input boxes. USERNAME PASSWORD VERIFYPASSWORD IF ($_POST/GET[PASSWORD] == $_POST/GET[VERIFYPASSWORD]){ exec("/path/to/useradd -p $_POST/GET[PASSWORD] $_POST/GET[USERNAME]"); } Th