modify-users

Modify attributes of some or all users for some or all virtual servers This command can be used to mass update attributes of all users --all-users in all existing virtual servers --all-domains in one shot. This command essentially acts as a wrapper for the virtualmin modify-user subprogram. For more details, please check its help documentation. For example, to enable email for all users in all domains, run: virtualmin modify-users --all-domains --all-users --enable-email To disable email for all users in the given domain, run:

Modify attributes of some or all users for some or all virtual servers#

This command can be used to mass update attributes of all users --all-users in all existing virtual servers --all-domains in one shot.

This command essentially acts as a wrapper for the virtualmin modify-user subprogram. For more details, please check its help documentation.

For example, to enable email for all users in all domains, run:

virtualmin modify-users --all-domains --all-users --enable-email

To disable email for all users in the given domain, run:

virtualmin modify-users --domain example.com --all-users --disable-email

To modify quota for all joe users in all domains, run:

virtualmin modify-users --all-domains --user joe --quota UNLIMITED

Command line help#

virtualmin modify-users --all-domains | --domain name
 --all-users | --user name
 [--pass "new-password" | --passfile password-file]
 [--disable | --enable]
 [--real real-name]
 [--quota quota-in-blocks]
 [--add-mysql database]
 [--remove-mysql database]
 [--enable-email]
 [--disable-email]
 [--add-email address]
 [--remove-email address]
 [--recovery [email protected] | --no-recovery]
 [--newuser new-username]
 [--enable-ftp]
 [--disable-ftp]
 [--add-group group]*
 [--del-group group]*
 [--send-update-email]
 [--no-check-spam | --check-spam]
 [--add-forward address]*
 [--del-forward address]*
 [--local | --no-local]
 [--autoreply "messsage" | --no-autoreply]
 [--autoreply-start time | --no-autoreply-start]
 [--autoreply-end time | --no-autoreply-end]
 [--autoreply-period secs | --no-autoreply-period]

Source: https://www.virtualmin.com/docs/development/api-programs/modify-users/

  • virtualmin, domain, email, mail, spam, database, mysql, ftp, user, group, quota, update, command line, modify, users
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...