I had some issues with the update to 115.2 today, so I had to remove the browser history for home assistant. It solved the issue but damn, I realized I forgot the owner/admin username. I only have non admin access at the moment.
I am running my HA as a VM on unraid, so I am able to access the command line for logging in as root via the VNC remote. So I can change password of a user but I don’t know the name of the owner/admin user.
Is it possible to add an admin user from the console?
Or is it possible to delete the authentication data when logged into the console?
Really desperate for some support, I don’t want to start over with a new HA setup.
Thanks, but I have already read it a couple of times. When I get in to the VNC I get directly into HA login page and login as root. But then… I have only found out how to reset user I know the name of.
Well, I have been able to get some kind of access by using the command “login” when I have accessed the HA console. But I have not been able to find the HA config folder, the keyboard setup is wrong so I haven’t been able to use the “~” key.
Just went through the same thing. Documenting here for future use.
If you have physical access to the instance VM/Pi etc from the ha > command line you can; login
(to access the HASS linux subsystem) docker ps
(to list the dockers that are running as part of HASS) docker exec -it XXXX /bin/bash
(use the first X chars of the Homeassistant Docker Instance id listed above, to access the specific Homeassistant docker instance linux subsystem) cat /config/.storage/auth
(this will output all the configured users in your instance) exit
(the docker instance) exit
(the HASS instance)
Now you can auth reset --username "ZZZZ" --password "abc123"
to reset the password of the user you found in the auth file above.
There is an error message issued when using the “-it” in the docker command, and the “exec” functionality is not possible. Has this been removed since?
Oh, you saved me so much hassle. Thank you very much. This project had been put aside and I know this is never a good idea. With the ‘cat /config/.storage/auth’ cmd I was able to output into an ‘auth.txt’ file and read that with nano.
But without having had another user with which I could log in to the ha instance I would have been lost.
So I used that user and luckily I could run sudo commands with it. not sure if it would have worked without.
But when I finally saw the users, it was just a questions of seconds to log in with the right account (because Password I knew) - sigh Thank again. Now I have to see what has changed in the last 13 months or so - whish me luck …