Lost authenticator, and bug in opnsense-shell

Started by rabinnh, February 22, 2024, 11:10:50 PM

Previous topic - Next topic
Good afternoon.  I lost my authenticator app (I won't go into how) and now I can't login to my firewall.  I found this entry:  https://forum.opnsense.org/index.php?topic=26614.msg128622#msg128622

Which recommended going into single user mode and entering:

opnsense-shell password

I did so, and went through all the prompts to revert to the local database and enter a new password.  However, after confirming the password, the scripts crash.  I have attached a screenshot of the crash that I took with my phone, so sorry about how hard it is to read.

In the meantime, is there some way I can fiddle around with a config file to enable me to get access again?

Thanks

Hi,

You need this fix:

https://github.com/opnsense/core/commit/603e1ce

Which was hotfixed in 23.7.12_5. Unfortunately you seem to be running the bad 23.7.12.


Cheers,
Franco

Awesome and easy. I'll give it a try in an hour or so.

You rock.