Is there any way to change the password of the web GUI administrator user in pfSense from the console?
Just to mention I didn't lock myself out from the web GUI.
I found the way to change the password for a user from a console/ssh of a pfSense.
Fist you have to download the change admin script to your /etc/phpshellsessions with the following command > fetch -o /etc/phpshellsessions/ https://raw.githubusercontent.com/pfsense/pfsense/c07e853bb4a67a3b728b7546b36801eaef770c19/etc/phpshellsessions/changepassword
And then you run the the following: pfSsh.php playback changepassword , it will ask you the new password and to confirm the new password for the user.
After you complete the above you can try log in the webgui with the new password.
Have a nice day.
Please check https://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help! Bottom line:
remount hdd
/sbin/mount -o rw /
reset passwd
/etc/rc.initial.password