Solved

Can we create a new UI admin user or change the password from any user using CLI ?

  • 4 May 2021
  • 1 reply
  • 470 views

Badge +1

 One of our customers forget the admin user credential and we need to reset the password for the user. Please let me know if there is any way around to do this? 

icon

Best answer by Sandesh Bushal 4 May 2021, 10:33

View original

1 reply

Badge

Doing this requires root privileges on the end system and it is possible to do this with either a support or a partner account on the logpoint system in question.

We maintain a “user” collection in our mongodb table. So once you have access to the mongo shell, you can run the following command to reset the user credentials to the default password that you get when you install logpoint for the first time.

db.user.update({"username":"admin"}, {$set:{"password": "pbkdf2:sha1:1000$T9AiW2h0$e57c2bbf4a1ad96df624c4bfe6f4d69183cd7485", "locked": false, "failed_login_count": 0}})

Doing so will reset your admin account if locked, and reset the login counts to zero.

The password you need to supply after doing this is the default password for the admin user.

Reply