use admin db.createUser( { user: "homestead", pwd: "secret", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } )