Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9301

Mongo 2.4 User Privilege Roles unclear

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Admin
    • Labels:
      None
    • Environment:
      Linux
    • ALL
    • Hide

      Provided

      Show
      Provided

      Hi,
      What role is needed to show list of databases, or this is a bug?

      I granted the following roles

      {
      "user" : "wfm_admin",
      "pwd" : "28c345aae0e0c346e7f2e4a2f77d96",
      "roles" : [
      "readAnyDatabase",
      "userAdminAnyDatabase",
      "dbAdminAnyDatabase"
      ],
      "_id" : ObjectId("51644586994702cc60d084b2")
      }

      But when connect as this user get the error

      > show dbs
      Tue Apr 9 09:46:11.399 JavaScript execution failed: listDatabases failed:

      { "ok" : 0, "errmsg" : "unauthorized" }

      at src/mongo/shell/mongo.js:L46

      Thanks,
      Edouard

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            eperov Edouard Perov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: