creating user accounts automatically

Metin ZAVRAK <[email protected]> Thu, 29 Apr 2004 00:52:32 -0700 (PDT)
Newsgroups gmane.mail.vqadmin
Message-ID <[email protected]>
Hi,
I'm trying to automate to process of creating new user accounts. 
I wrote a php script that is supposed to run vadduser.

The main part of the code is simple:

`/usr/home/vpopmail/bin/vadduser $username $passwd`;

This code runs in a for loop and supposed to create users such as [email protected],
[email protected], [email protected] ....

all of the users will have the same password. 

The problem is, when I execute the code, it creates Maildirs for users but Maildirs contains "cur"
"new" and "tmp" folders not all of the other necessary folders. 

Also the folders owner is nobody (apache owner)...It should be vpopmail I guess. Thus it creates a
segmentation fault (a weird mistake)

How can I automate the process of creating new user accounts and do this using a php script. 
Thanks. 





 




=====
Metin Zavrak
******************************
[email protected]
[email protected]
[email protected]
******************************


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover