logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: New User Creation.: msg#00116

Subject: RE: New User Creation.
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]");

}

The above is assuming you are executing exec() functions as a PRIVILEGED
user. It also assumes that no one is able to view the processes taking
place on the machine as the password will show up in clear text when
ps'n (reporting process status). This also assumes you are not running
IIS on a windows platform.

The above is just an example (and a crappy one at that), I am not
responsible for ANYTHING you do with this.

These "assumptions" may help. Read below.
_________________
MOST IMPORTANTLY
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1. READ POSTING RULES
2. hmm, it's in the posting rules.
3. http://us4.php.net/mailing-lists.php
4. Do not reply to my email address.


-----Original Message-----
From: Rajendra Kumar [mailto:rsrie@xxxxxxxxx] 
Sent: Friday, July 18, 2003 3:02 AM
To: php-install@xxxxxxxxxxxxx
Subject: [PHP-INST] New User Creation.


Hello List,
 
   i am new to php programming. can anyone help me to create a linux
user using php program and also i want to assign passwd to the new
created user. just like New User Sign Up form for an email. i use
squirrel mail they din't provided the new user sign up.
 
  any help will be appreciated.
 
thank,
Kumar.

Catch all the cricket action. Download Yahoo! Score tracker



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>