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

How Can I drop old system.users collection?

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

      How Can I drop system.users collection in database? In previsus versions of MongoDB every database has its own system.users collection but in newer (I think since 2.6) are credentials stored in admin.system.users. I try to drop obsolete collection (somedatabase.system.users), but I can't.
      I tried it with user with these roles: readWriteAnyDatabase, userAdminAnyDatabase, dbAdminAnyDatabase, clusterAdmin (all on admin database) .
      Error message:
      {{
      rs:PRIMARY> db.system.users.drop()
      2015-09-21T13:55:09.502+0200 drop failed: {
      "ok" : 0,
      "errmsg" : "not authorized on somedatabase to execute command

      { drop: \"system.users\" }

      ",
      "code" : 13
      } at src/mongo/shell/collection.js:598
      }}

            Assignee:
            Unassigned Unassigned
            Reporter:
            filip.havlicek@livesport.eu Filip Havlí?ek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: