Reset UI admin password from command line

lkjasd

Cadet
Joined
Dec 7, 2022
Messages
1
I need to reset the web UI's admin password. I do have root command line access, so is there a way to do it from there? Previous answers suggest doing `python manage.py changepassword admin`, but this command needs to be given the location of the Django database file and I'm not sure where that is.

Version is TrueNAS 12.0.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
the web UI just uses the root account. how are you able to access root if you don't have the root password?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I do have root command line access, so is there a way to do it from there?
"Reset root password" from the console menu would seem like the obvious choice here.
 

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
I suggest, from the gui, from the left menu, open a shell then in the shell, enter /etc/netcli, which will open the shell, one option of whic is to chaqnge password. Good luck.
John
 
Top