Skip to content

Instantly share code, notes, and snippets.

View jeroeninhaarlem's full-sized avatar

jeroeninhaarlem

View GitHub Profile
@jeroeninhaarlem
jeroeninhaarlem / how-to-restore.md
Created October 3, 2022 21:02 — forked from AmazingTurtle/how-to-restore.md
restore access to unifi controller

Restore access to a unifi controller

When you are unable to login to the unifi controller or forgot admin password, you can restore access using SSH and manipulating mongodb directly.

Warning

Do not uninstall unifi controller - most of the data is not stored in mongodb. In case you thought a mongodb backup would be sufficient, you may have fucked up already, just like me. However I managed to write this "tutorial" for anyone to not run into the same trap.

Steps