User Tools

Site Tools


ubiquiti:controller:lost_controller_login_password

Ubiquiti - Controller - Lost Controller Login/Password

  1. Download mongodb for your platform from http://www.mongodb.org/downloads
  2. Execute bin/mongo --port 27117 from your controller
  3. Type 'use ace'
  4. Type 'db.admin.find()'

Try:

mongo --port 27117 ace --eval 'db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )'

or

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

NOTE: Replace <UserName> with the admin account.

You can now login with your admin account and password password.

NOTE: That hash could have been generated with the command:

# mkpasswd -m sha-512 password -s "ybLXKYjTNj9vv"

returns:

$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/

To make the password 'password' use hash

$6$9Ter1EZ9$lSt6/tkoPguHqsDK0mXmUsZ1WE2qCM4m9AQ.x9/eVNJxws.hAxt2Pe8oA9TFB7LPBgzaHBcAfKFoLpRQlpBiX1

Use the hash above for 'password' as your password, then just use the Unifi admin UI to generate a new one.

NOTE: Uses the salt… (9Ter1EZ9$1St6)


Search for password in this link: http://wiki.ubnt.com/UniFi_FAQ

ubiquiti/controller/lost_controller_login_password.txt · Last modified: 2020/11/25 10:13 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki