How do I reset the password for a user if I’ve lost access to the WebAdmin of Kerio Connect?
If you lose your administrator account for Kerio Connect administration, you can reset it by modifying the users.cfg
file.
Resetting the admin password
Windows
- Stop the Kerio Connect Engine — right-click the engine monitor icon in the system tray area and select Stop Kerio Connect.
- Go to the Kerio Connect installation directory. The default location is
C:\Program Files\Kerio\MailServer
. - Edit the users.cfg file in a text editor.
- Restart Kerio Connect engine.
- Log in to the administration using an empty password.
OS X
- Login to the system as the root user.
- Click the Stop button in the Kerio Connect Monitor.
- Go to the Kerio Connect installation directory. The default location is
usr/local/kerio/mailserver
. - Edit the users.cfg file in a text editor.
- Restart Kerio Connect engine.
- Log in to the administration using an empty password.
Linux
- Stop the Kerio Connect Engine. run the following command:
/etc/init.dl/kerio-connect stop
- Go to the Kerio Connect installation directory. The default location is
opt/kerio/mailserver
. - Edit the users.cfg file in a text editor.
- Restart Kerio Connect engine.
- Log in to the administration using an empty password.
Editing the users.cfg file
- Open the
users.cfg
file in text editor. - Search for the name of the admin account in the list:
<variable name="Name">
. For example:<variable name="Name">jsmith</variable>
- Under the administrator's name, search for the line with
<variable name="Password">
. For example:<variable name="Password">D3S:1234ab56c7de89</variable>
- Change the "password variable to
NUL:
. For example:<variable name="Password">NUL:</variable>
- Under the same administrator's name, search for the line with
<variable name=”Rights”>0</variable>
- Change the value from
0
to1
. For example,<variable name=”Rights”>1</variable>
- Save the file.
NOTE
When you log in to the administration, create a new password right away.
Alternate Solution
- Stop the Kerio Connect Engine.
- Open mailserver.cfg in a text editor.
NOTE
- Under
Administration
table, setBuiltInAdmin
to1
- Change
BuiltInAdminUsername
tokerioadmin
. - Delete the value set for
BuiltInAdminPassword
. - Save the file.
- Start the Kerio Connect Server Engine. You should be able to log in using
kerioadmin
as the username without any password. - Go to Webadmin >Configuration > Administration settings and set a password.