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

How Can I drop old system.users collection?

    XMLWordPrintable

    Details

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

      Description

      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
      }}

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: