Re: PHP and useradd

From: Date: Tue, 24 Apr 2001 02:10:02 +0000
Subject: Re: PHP and useradd
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49987@lists.php.net to get a copy of this message
One way is to use a cron job to handle the account adding from a text file, which PHP will write the data into. Since the cron job will use only the account name and password the user submitted it's much less of a security risk. -- Plutarck Should be working on something... ...but forgot what it was. "Nashirak Bosk" <nashirak@mindspring.com> wrote in message news:3AE4DB86.579C503B@mindspring.com... > Ok. I have looked at all my options for creating account dynamically > from a webpage, and have not come up with much. I want to create an > user account that only creates a mail account. I think I can do this > with the useradd command (I am running Linux). Like this: > > useradd accountname -s /bin/false then I could su into the > accountname and run the passwd command. > > Now I could do this, with PHP using the popen() function. There is only > 1 problem. I would have to run all this as root since only root is able > to run this command. And even if I could it would be a big no no to > somehow make PHP become root and then run this command. Any other > suggestions on how to create an account dynamically with PHP or how to > modify what I about the useradd command to get this to work? Thanks > > > > -- > ------------------------------- > > Clayton Bluhm > > Computer Engineering Student > > gte501v@prism.gatech.edu (School) > nashirak@mindspring.com (home) > > >

« previous php.general (#49987) next »