3

we are using centos 7 , mongodb 3.0.8 Im trying to disable anonymous access to mongodb. Place auth = true in /etc/mongod.conf disabling anonymous access in version 2.x but in version 3 when i place the same , the server it self not starting

When i hard search , i found in the mongo docs that in version 3.x security.authorization should be placed in /etc/mongod.conf

Could any one please help me how to place security.authorization in config file.

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
user5628973
  • 311
  • 1
  • 3
  • 5

1 Answers1

4

add the following to the mongod.conf file:

security:
  authorization: enabled
Mike Hoven
  • 51
  • 4