Cmk-passwd does not work

CMK version: 2.1.p16
OS version: Centos 8

Error message:

I can’t change the password using either cmk-passwd or htpasswd
Whatever I do I always get login failed…

web.log says it’s locked.
2023-01-06 08:13:12,466 [30] [cmk.web.auth 3142255] Login failed for username: cmkadmin (existing: Yes, locked: Yes, failed logins until locked: -19), client: 10.0.101.108

It would be nice if the cmk-password would unlock any failed attempts (that I guess this refers to?) - Is there a way to manually fix this?

Hi,
open the file cached_profile.mk in the directory var/check_mk/web/cmkadmin and replace:

'locked': True

with

'locked': False

… or have a look at these threads:

Karl

Intersting, after changing locked to False, trying to login (just once) the profile is directly changed to True (with one “failed” attempt)

Only you could create another admin user from CLI.

If you specify another user, that does not exits with cmk-passwd it will actually create a user (as a normal user) :smiley:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.