MongoDB Documentation, Release 3.0.4 Step 11: Check the status of the replica set. Use the rs.status() operation: rs.status() Step 12: Create additional users to address operational requirements. You can use built-in roles (page 405) to create common types of database users, such as the dbOwner (page 407) role to create a database administrator, the readWrite (page 406) role to create a user who can update data, or the read (page 405) role to create user who can search data but no more. You also can define custom roles (page 325). For example, the following creates a database administrator for the products database: For an overview of roles and privileges, see Authorization (page 324). For more information on adding users, see Add a User to a Database (page 386). use products db.createUser( { user: "productsDBAdmin", pwd: "password", roles: [ { role: "dbOwner", db: "products" } ] } ) 6.3.3 Access Control Tutorials The following tutorials provide instructions for MongoDB”s authentication and authorization related features. Enable Client Access Control (page 357) Describes the process for enabling authentication for MongoDB deploy- ments. Enable Authentication in a Sharded Cluster (page 358) Control access to a sharded cluster through a key file and the keyFile setting on each of the cluster’s components. Enable Authentication after Creating the User Administrator (page 359) Describes an alternative process for en- abling authentication for MongoDB deployments. Use x.509 Certificates to Authenticate Clients (page 361) Use x.509 for client authentication. Use x.509 Certificate for Membership Authentication (page 363) Use x.509 for internal member authentication for replica sets and sharded clusters. Authenticate Using SASL and LDAP with ActiveDirectory (page 366) Describes the process for authentication us- ing SASL/LDAP with ActiveDirectory. Authenticate Using SASL and LDAP with OpenLDAP (page 369) Describes the process for authentication using SASL/LDAP with OpenLDAP. Configure MongoDB with Kerberos Authentication on Linux (page 372) For MongoDB Enterprise Linux, de- scribes the process to enable Kerberos-based authentication for MongoDB deployments. Configure MongoDB with Kerberos Authentication on Windows (page 376) For MongoDB Enterprise for Win- dows, describes the process to enable Kerberos-based authentication for MongoDB deployments. 356 Chapter 6. Security