How to change a Username

Ive googled all over the place - but cant find how to change (in this case the Owner, and only users) username.

Ive tried edditting .storage/Auth and .storage/Auth_provider.HomeAssistant
to change the user=‘username’ - but if I then restart Home Assistant, the old username comes back.

All help appreciated.

Are you stopping HA before editing? and then restarting?

I’m pressing the STOP in config of HA and then editing the files via the UI.
…so yes, unless the sever restarts while using the UI ?

I’m using the Home Assistant Blue and these are the steps I took, in case they can help anyone who gets here after me.

01. Setup "Samba share" from the Supervisor.
02. SSH into your Home Assistant device.
03. Type - "cd config/.storage"
04. Type - "nano auth"
05. Fine the username I need to edit, and change it.
06. Press - "CTRL + O" -> "Return" -> "CTRL + X"
07. Type - "nano auth_provider.homeassistant"
08. Find the username, and change it.
09. CTRL + O -> Return -> CTRL + X
10. Type - "ha core restart"
11. Type - "exit"
10 Likes

Wow, I can’t believe how hard it is to change a username and display name as separate things.

It may not be the same still. A lot has changed in the last 3 years

I couldn’t figure out how to do it in the installation I did yesterday.

Apart from going into the code one can not change or add a user name?

Is this correct?

Regards,

Bob (new user)

New users are added under Configuration>Users

Your instructions were perfect! I did it from Terminal. Thank you!

After gitting with putty into the termial I get

Clipboard01

What next?

If you are able to login to the GUI, changing the Username is as easy as going to:

Settings → People → (click username)

From there you can change the Display name and Username

This is the method now, back then it required some hacking.