I have tried setting up username / password .But none of the methods seems to work.
1. In mongod.conf ----> remove **#auth=true** to **auth =true** 2.Started the mongod server --> sudo service mongodb restart 3. Created the user in --> use admin -->db.createUSer() Followed these procedure still not able to figure out how it works its not working. mongod --auth
But then I try to connect its opening with out any username password error.
I have checked many documentations and answers but was still not able to figure out.