1

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?

Michael
  • 133
  • 1
  • 4

1 Answers1

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

Abhijeet Kasurde
  • 983
  • 9
  • 20