> So my specific problem is this: How do I create a new
> user account on a *NIX system to have permissions to
> send and receive email, for a web based email system.

In theory, and in my case, I couldn't have PHP do this because PHP is
running on apache with the user status of nobody.  So here is my
long-winded solution:

User requests e-mail account to be created.  PHP inserts their name into a
text file (or db, doesn't matter).  I compiled command line php
(./configure without the --with-apache).  I setup command line php to run a
php script through cron with root permissions every 5 mins.  The php script
moves the text file to a temporary location (so that I don't have people
added to it as I am reading it) and then the php script parses through the
usernames and passwords in the text file and issues system() commands to
create the users.  It is not the most secure solution but there are some
ways to secure it through data validation.

Does that make sense?

Hope so,
Nathan Cook


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

Reply via email to