This instructions are still working in 2025, but command mongo is now '''mongosh''' which if not existent can be installed with '''apt-get install mongodb-mongosh'''
you can then use the instructions from here or the two one liners from Reilly Chase via hostfi 3561102
mongo --port 27117 ace --eval "db.admin.find().forEach(printjson);"
find the line of your admin account name
name: "<youradminname}>"
then use the following line to set your
mongo --port 27117 ace --eval 'db.admin.update( { "name" : "<youradminname>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )'
Thank you very much to Reilly C and @Dan Awesome