MongoDB Security and Access Control

If your MongoDB deployment has no users, you must connect to mongod using the localhost exception or use the –noauth option when starting mongod to gain full access the system. Once you have access, you can skip to Creating the system user administrator in this procedure. If users exist in the MongoDB database, but none of them has the appropriate prerequisites to create a new user or…