-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
We need to cover the possibility of auth being enabled. Switching it off might not be viable (or palatable to some) so there are some extra instructions needed prior to step 3.b:
// Create a role that has the privileges to find/update/remove documents from local.system.replset collection. db.runCommand( { createRole: "replsetRole", privileges: [ { resource: { db: "local", collection: "system.replset" }, actions: ["find","update","remove"] } ], roles: [] } ); // Grant this new role to user "username". db.grantRolesToUser( "username", [ { role: "replsetRole", db: "admin" } ] );
This grants the necessary privileges to "username" to modify local.system.replset.