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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Andy Schwerin
            Reporter:
            Ron Natan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: