Enable Security in MongoDB

To enable MongoDB securing, edit the mongod.conf file setting authorization: enabled.

About this task

More information on this can be found at Configuration File Options.