Change "Unifi network application" local user password via SSH

Login to Linux via SSH

mongo --port 27117 ace --eval "db.admin.find().forEach(printjson);"

Replace the with the admin account that you want to reset in the command below.

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

The password for the admin user will now be set to "password"

David Yuen

David Yuen

Hong Kong