Is it possible to change/update multiple user account passwords in the gui or from the command line?

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

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