How to create an Admin account and password Zimbra
In the examples below replace example.com with your actual domain.
First install `pwgen` command:
apt install pwgen
This will create an additional admin account with a random password:
newpass=$(pwgen 16 -n1) echo $newpass zmprov ca testadmin@example.com "$newpass" zimbraIsAdminAccount TRUE
This will transform a normal existed user account into an admin account (in this example futur-admin will become an admin) :
zmprov ma futur-admin@example.com zimbraIsAdminAccount TRUE
To change the password for user testadmin@example.com run:
newpass=$(pwgen 16 -n1) echo $newpass zmprov sp testadmin@example.com "$newpass"
The admin account admin@example.com was created during installation.
How to regain access to admin account if using external LDAP or Active Directory authentication
In case you are using external LDAP or Active Directory authentication and you have been locked out of your admin account and are unable to unlock via the external LDAP or Active Directory. You can regain access to Zimbra from the command line by creating a new domain and creating a global administrator in the new domain. With that account you can also manage the accounts on your other (locked out)domain.
zmprov cd temporarydomain.com newpass=$(pwgen 16 -n1) echo $newpass zmprov ca testadmin@temporarydomain.com $newpass zimbraIsAdminAccount TRUE source : https://wiki.zimbra.com/wiki/How_To_Create_an_Admin_AccountPosted on: March 18, 2024, by : Julian's | 37 views