Reset lost twofactor

I’m using LiberNMS in my home lab, so I have root access. My ‘admin’ account is the only one present and uses twofactor.

I recently swapped mobile devices and didn’t take an encrypted backup prior to wiping, meaning my security keychain where all my 2-factor identities are stored wasn’t saved (never make that mistake again!).

I am able to restore access by setting twofactor = false globally in my config.php; however it doesn’t clear the twofactor authentication settings for the admin user and upon toggling twofactor = true I cannot access the webUI.

How can I reset my admin user’s twofactor configuration so I can set up a new token for my authenticator app?

bump… has no one else run into this?

This topic was automatically closed 186 days after the last reply. New replies are no longer allowed.