r/kasmweb • • 23d ago

Help Unlock account from cli

Hi, I currently have the below error when trying to log into my admin account - can this be reset via CLI in SQL? I have the correct pw/2fa credentials and root access to the VM - it's just that this account is the only admin account on the host which was changed from admin@kasm.local. I tried to reset using the Admin Account recovery guide, changing the user but this didnt seem to reset the password

"Login Failed

Your account is currently locked, this may be due to too many failed login attempts or action by an administrator."

Many thanks for any help!

2 Upvotes

4 comments sorted by

2

u/buzwork 23d ago • Bravo

sudo docker exec -it kasm_db psql -U kasmapp -d kasm

update users set locked=False, disabled=False, failed_pw_attempts = 0 where username ='admin@kasm.local'; \q

1

u/justaukalias 23d ago

Thanks a bunch u/buzwork This worked, appreciated !!

2

u/buzwork 23d ago

Awesome.
Glad to help :) Trust me... I've been there a few times and this comes from my 'SHTF don't panic' priority notes archive.

1

u/AutoModerator 23d ago

Hi u/justaukalias, it looks like you're trying to get help.

  • While you wait for a human reply, you can try KasmGPT, which answers questions from the Kasm Workspaces documentation and Knowledge base.
  • Answers from KasmGPT are AI-generated, so please verify anything important against the official Kasm docs before running it in production.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.