Guy E Matz

07/07/2021, 5:38 PM
Another bonehead question: I have lost access to the UI . . . How can I change the admin password in the DB directly? I've tried setting to empty string but didn't work.


07/07/2021, 11:06 PM
Hmm, I'm not sure there's a trivial way to do this as the password needs to be properly hashed with the salt. I assume you don't have SMTP configured such that you could use password reset? The easiest thing may be to configure an SMTP server by manually updating the configs in the
table in MySQL, then requesting a reset. If you don't have a real SMTP server you could use something like Mailhog which we use for testing emails in a development environment (https://github.com/fleetdm/fleet/blob/main/docker-compose.yml#L29-L33)
Mystery Incorporated

Mystery Incorporated

07/10/2021, 2:45 AM
Perhaps if the hashing scheme was known it could just be a case of hash(salt+newpassword) and put that result into the DB along with salt?