How to change MongoDB users password

Log on to your MongoDB instance, admin DB:

mongo admin -u admin -p <current password>

To change the users password, execute:

db.changeUserPassword('admin','<new password>')