Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.