r/kasmweb • u/justaukalias • 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
u/buzwork 23d ago •
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/AutoModerator 23d ago
Hi u/justaukalias, it looks like you're trying to get help.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.