Welcome, Guest
Please Login or Register.
Lost Password?
Re: Re: Bulk user creation (1 viewing)
Post Reply

TOPIC: Re: Re: Bulk user creation

#2755
jpenix (User)
Posts: 31
graphgraph
Bulk user creation 2006/09/30 01:29  
Any recommendations on how to create large quantities of mail users in virtual domains? Is there something available on the command line I could tap into with a script? Or is this going to require some Perl work? Any example scripts I can reference?
  The administrator has disabled public write access.
#2756
Joe (Admin)
Posts: 4213
graph
Re: Bulk user creation 2006/09/30 10:59  
Hey Joshua,

There are several mechanisms for bulk user creation, including command line tools found in the /usr/libexec/webmin/virtual-server directory.

Here's the docs:

http://www.virtualmin.com/support/documentation/virtualmin-commands/

Specifically, the create-user.pl command is documented here:

http://www.virtualmin.com/support/documentation/virtualmin-commands/ch04.html#id2538022

You could, pretty easily, wrap this command up in a bash for loop to create users from usernames and passwords found in a file. If you're unsure how to do that, give me an example of what your source of usernames looks like and I'll see what I can come up with.

If you run into any problems, feel free to query us here or in the customer issue tracker. Or, if you think you find a bug, in the bug tracker.
  The administrator has disabled public write access.
#2766
jpenix (User)
Posts: 31
graphgraph
Re: Re: Bulk user creation 2006/10/02 19:39  
Well duh, there it is right in the docs. :) Thanks, I haven't looked at the newly expanded docs section. That looks like it'll do the trick.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.