How To Create an Admin Account: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{BC|Community Sandbox}} | |||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=How to create an Admin account= | |||
{{KB|{{Unsupported}}|{{ZCS 10.0}}|{{ZCS 9.0}}|}} | |||
In the examples below replace example.com with your actual domain. | |||
First install `pwgen` command: | |||
apt install pwgen | |||
zmprov | 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 | |||
The admin account admin@ | 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 | |||
{{Article Footer|4/5/2006}} | |||
[[Category:Administration]] |
Latest revision as of 10:56, 1 March 2024
How to create an Admin account
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