Submitted by isdahlc on Tue, 11/13/2012 - 19:07 Pro Licensee
Is there a way to set the password for multiple email user accounts at once (approximately 50 accounts). Happy to do this from the command line or web based interface.
Thanks!
-- Craig
Status:
Active
Comments
Submitted by JamieCameron on Tue, 11/13/2012 - 19:20 Comment #1
You can do this from the command line, using the
virtualmin modify-user
command.For example, if the users were in the file
/tmp/users.txt
and you wanted to give them all the same password, you could use a shell script like :cat /tmp/users.txt | xargs -Iusername virtualmin modify-user --domain example.com --user username --pass xyz