Firewall – How to change the webgui password in pfsense from a console

consolefirewallfreebsdnetworkingpfsense

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.

Best Answer

Please check https://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help! Bottom line:

  • restart
  • pick option 4 from the menu
  • when prompted to start /bin/sh -> hit enter
  • remount hdd

    /sbin/mount -o rw /

  • reset passwd

    /etc/rc.initial.password