MongoDB server can still be accessed without credentials

后端 未结 2 1115
遇见更好的自我
遇见更好的自我 2020-11-30 08:53

I have a fresh mongodb server (2.6.0) in my machine and I started the mongod instance with the following config file:

dbpath = c:\\mongo\\data\\db
port = 270         


        
2条回答
  •  青春惊慌失措
    2020-11-30 09:16

    Although you can protect your databases by enabling authentication in security section of the mongo.conf file like this:

    security:
      authorization: enabled
    

提交回复
热议问题