createUser fails after dropping all users

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A mongod started with --auth allows the first user to be created via the localhost exception, and then all further operations require auth. In the past, after all users were dropped, mongod returned to this initial state. Now, it seems to reject the createUser command after all users are dropped:

      not authorized on admin to execute command { createUser: "user", pwd: "xxx", digestPassword: false, roles: [ "root" ], $db: "admin" }
      

      I'm connecting to 127.0.0.1. I haven't investigated to see when this behavior change happened.

            Assignee:
            Mark Agarunov (Inactive)
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: