[DOCS-4828] Change Hostnames (replset) requires special privileges when auth is enabled Created: 17/Feb/15  Updated: 30/Oct/23  Resolved: 12/Dec/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Andrew Ryder (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 5 years, 9 weeks ago

 Description   

RE: http://docs.mongodb.org/manual/tutorial/change-hostnames-in-a-replica-set/#replica-set-change-hostname-downtime

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.



 Comments   
Comment by Githook User [ 12/Dec/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-4828: add user role info for change hostnames in a repl set tutorial
Branch: v3.2
https://github.com/mongodb/docs/commit/b27298e3f04a93befbd1f282b37cd75075b36232

Comment by Githook User [ 12/Dec/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-4828: add user role info for change hostnames in a repl set tutorial
Branch: v3.4
https://github.com/mongodb/docs/commit/576ad811f7410928e3e1578bc97920dcfa97ed08

Comment by Githook User [ 12/Dec/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-4828: add user role info for change hostnames in a repl set tutorial
Branch: v3.6
https://github.com/mongodb/docs/commit/9a9d76e423e4661b508c0abe3a0a303052054b88

Comment by Githook User [ 12/Dec/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-4828: add user role info for change hostnames in a repl set tutorial
Branch: v4.0
https://github.com/mongodb/docs/commit/fc85645365a768bd2ca6fb37e6f258182683aa25

Comment by Githook User [ 12/Dec/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-4828: add user role info for change hostnames in a repl set tutorial
Branch: master
https://github.com/mongodb/docs/commit/1d9413491419a36a400b944aa94ecc6c6e92fa21

Comment by Githook User [ 10/Mar/15 ]

removed commit messages for different ticket DOCS-4906

Comment by Githook User [ 06/Mar/15 ]

removed commit messages for different ticket DOCS-4906

Generated at Thu Feb 08 07:48:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.