Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have mongo running on my system however I can access all my databases/collections from other peoples accounts. Can I secure specific collections? How do I block access to my collections but not cut them off of the mongo shell?

share|improve this question

For authentication purposes you need to start mongod with --auth option (Considering the user and passwords already created.)

For further info please refer this links

mongodb user authentication

Quick tip to setup users in mongodb

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.