Recover Unifi Controller login

Modified on Wed, 09 Aug 2023 at 04:39 PM

1) download the MongoDB from here.

2) Create a folder on the C drive ( passwordrecover )

3) Extract mongo.exe from the bin folder into the newly created C:\passwordrecover folder

4) WINDOWS + R and type cmd ( ENTER )

5) Go to the folder you just created

cd C:/passwordrecover

6) Run the following commands, those commands will prompt you with all the admin account.

mongo --port 27117
 use ace
 db.admin.find()

7) Now run the next command and replace <UserName> with the admin account.

db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )

8) You can now login with your admin account and password password

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article