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

Can you create a role that will have permission for currentOp and killOp

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I tried the following on 2.5.5 and it said unrecognized. How can I give this permission to a user without full dbAdmin so that they can cancel their long-running queries? Even better would be that they could only cacnel their own.

      > db.runCommand({createRole: "killOpRole", privileges: [{resource:

      {cluster: true}

      , actions: ["killOp", "currentOp"]}]})
      {
      "ok" : 0,
      "errmsg" : "Unrecognized action privilege string: killOp",
      "code" : 9
      }

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            rbennata Ron Natan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: