mardi 25 mars 2014

disable anonymous access to MongoDB


Vote count:

0




I have installed MongoDB on Windows 2012 Server and running it on windows service.


In order to protect it from anonymous log-ins, I followed below steps to enable authenticate and disable anonymous access


Create the Administrator Credentials and then Enable Authentication



  1. Start the mongod or mongos instance without the auth or keyFilesetting.

  2. Create the administrator user as described in Create a User Administrator.

  3. Re-start the mongod or mongos instance with the auth or keyFile setting.


I am not sure what 3rd step is meant, I stopped MongoDB service and restarted it. But I can still do a anonymous Log-in to the remote MongoDB


How can I disable anonymous access to MongoDB?



asked 2 mins ago

HaBo

2,426





Aucun commentaire:

Enregistrer un commentaire