[SERVER-9301] Mongo 2.4 User Privilege Roles unclear Created: 09/Apr/13 Updated: 10/Dec/14 Resolved: 09/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Edouard Perov | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Operating System: | ALL |
| Steps To Reproduce: | Provided |
| Participants: |
| Description |
|
Hi, I granted the following roles { But when connect as this user get the error > show dbs at src/mongo/shell/mongo.js:L46 Thanks, |
| Comments |
| Comment by Edouard Perov [ 10/Apr/13 ] |
|
Please ignore, I found it out it is dbAdminAnyDatabase |
| Comment by Edouard Perov [ 10/Apr/13 ] |
|
Hi, but it gets an error when connects to another database wfm:PRIMARY> show profile at src/mongo/shell/query.js:L180 Thanks, |
| Comment by Spencer Brody (Inactive) [ 09/Apr/13 ] |
|
You're right, that message is a bit misleading. I have filed this pull request against our documentation to clarify the function of the clusterAdmin roles: https://github.com/mongodb/docs/pull/833. Hopefully that clears things up, thank you for the suggestion! |
| Comment by Edouard Perov [ 09/Apr/13 ] |
|
Thanks you very much, it works. |
| Comment by Spencer Brody (Inactive) [ 09/Apr/13 ] |
|
The listDatabases command requires the "clusterAdmin" role. You can see a full list of the roles supported in 2.4, as well as all the operations that are granted to each role, here: http://docs.mongodb.org/manual/reference/user-privileges/ |