Hi All,
I am using checkmk raw edition. but I forget my admin account password, so I can’t login to the GUI. But I can login the Linux with my root account. How can I recover my GUI account password ? please advise.
Regards
Ming
Hi All,
I am using checkmk raw edition. but I forget my admin account password, so I can’t login to the GUI. But I can login the Linux with my root account. How can I recover my GUI account password ? please advise.
Regards
Ming
Hi @MingC
change your user to your site-user and run “cmk-passwd” command.
sorry, how to change to site user ?
As root, do one of:
sudo -u $SITEUSER -i
omd su $SITEUSER
Hi Dirk, actually I am not sure if my account is lock or I lost my password. If the account is locked due to to many failure login attempt, how do i unlock it from CLI ?
Hi Dirk,
i tried the command, it ask me to specify the site. The site is “sljs”, the username i want to reset the password is “cmkadmin”, so what should the command be ?
![]()
Hi,
if you type “omd sites” you can see all sites running on the system, after this you need to select site like mysite with “omd su mysite” and than you can change the password for cmkadmin or the name you want with “cmk-passwd cmkadmin”.
BR
Berni
Thanks, i can switch site to sljs, but it prompts cmk-passwd command not found . Please help.

Your welcome, try it with: “htpasswd -m etc/htpasswd cmkadmin”

Hi,
I found it in the Docs ![]()
Unlocking is then only possible by a user with the admin role. Note that administrator accounts can also be locked! If you are permanently locked out, you can only unlock your account via the command line. To do this, edit the file etc/htpasswd as a site user and remove the exclamation mark from the line of the affected user, here myuser:
OMD[mysite]:~$ cat etc/htpasswd
automation:$2y$12$zKF4Sasws7rDJCByZ1r5ke...
cmkadmin:$2y$12$ZmE96frGSm9sdWiWRXtxbuyu...
myuser:!$2y$12$8FU93yH7TFTyJsyUvKCh1eqYJG..
OMD[mysite]:~$ vim etc/htpasswd
...
OMD[mysite]:~$ cat etc/htpasswd
automation:$2y$12$zKF4Sasws7rDJCByZ1r5ke...
cmkadmin:$2y$12$ZmE96frGSm9sdWiWRXtxbuyu...
myuser:$2y$12$8FU93yH7TFTyJsyUvKCh1eqYJG...
BR
Berni
Thanks, i tried removed the ! from the htpasswd file, then i try login again, still failed. So I go back to check the htpasswd file again. The ! came up again…
I mean as long as I tried 1 login attempt, the account is locked with the “!” shown again.
Alternatively, can I create a new admin account in site “sljs” from command line . So I can login to GUI, and reset the “cmkadmin” account password from GUI…
How can I create new admin account from GUI? Please help
I would try to change the htpasswd file and restart the site first, if this ist not working I would try this: Unable to unlock cmkadmin user - #4 by sylbal