June 2014
Intermediate to advanced
696 pages
38h 52m
English
The first step in configuring access control is to implement a user administrator. The user administrator should only have rights to create users and not to manage the databases or other administration functions. This keeps a clean separation between database administration and user account administration.
You create a user administrator by executing the following two commands in the MongoDB shell to access the admin database and then add a user with userAdminAnyDatabase rights:
use admindb.addUser( { user: "<username>", pwd: "<password>", roles: [ "userAdminAnyDatabase" ] } )
The user administrator account should be created with userAdminAnyDatabase as the only role. This ...
Read now
Unlock full access