Security In MongoDB - OmIndia

Teach To India

Friday, August 03, 2018

Security In MongoDB

Security In MongoDB


1. The first step is to specify the "username" and "password" which needs to be created.
2. The second step is to assign a role to the user. Since it needs to be a database administrator in which case we have assigned to the "userAdminAnyDatabase" role. This role allows the user to have administrative privileges to all databases in MongoDB.
3. The DB parameter specifies the admin database which is a special Metadatabase within MongoDB which holds the information for this user.


No comments:

Post a Comment

Comments

Popular