Resets the password for some or all users in some or all virtual servers This command can be used to mass update the passwords of all users in a virtual server, or just those matching some criteria. For example, to reset the password for all users in the domain example.com, run: virtualmin reset-pass --domain example.com To update the password for just the user joe in example.com, run: virtualmin reset-pass --domain example.com --user joe To update the password for all users in all domains, run:
Resets the password for some or all users in some or all virtual servers#
This command can be used to mass update the passwords of all users in a virtual server, or just those matching some criteria.
For example, to reset the password for all users in the domain example.com, run:
virtualmin reset-pass --domain example.com
To update the password for just the user joe in example.com, run:
virtualmin reset-pass --domain example.com --user joe
To update the password for all users in all domains, run:
virtualmin reset-pass --all-domains
To update the password for all users in all domains except the owners, run:
virtualmin reset-pass --all-domains --exclude-owner
All passwords will be set to a random value, unless the --pass flag is given, in which case the same password will be used for all users.
Command line help#
virtualmin reset-pass --all-domains | --domain name
[--exclude-owner]
[--user name]
[--pass]
Source: https://www.virtualmin.com/docs/development/api-programs/reset-pass/
