Bulk user creation

3 posts / 0 new
Last post
#1 Sat, 09/30/2006 - 01:29

Bulk user creation

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?

Sat, 09/30/2006 - 10:59
Joe's picture

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:


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


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.


Check out the forum guidelines!

Mon, 10/02/2006 - 19:39 (Reply to #2)

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.

Topic locked