system level adduser - repost
| From: | John Hogan | Date: | Fri, 16 Jun 2000 13:44:00 +0000 |
| Subject: | system level adduser - repost | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2065@lists.php.net to get a copy of this message | ||
I posted this last night, too late for all you gurus to respond. Here's what I had to say:
We're creating a webmail application using U-Wash IMAP. The user fills out a signup form to get an account. We want to add the user in real time, giving them access to their account immediately.
The best idea right now is to loop through the /etc/passwd file, looking for the existence of a system username. If the selected name is not on the list, we'd like to add it (probably using 'system()').
Would anyone care to comment on the security and procedure of adding system users from a php script?
- John Hogan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net