-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.10
-
Component/s: Admin
-
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
",
"code" : 13
} at src/mongo/shell/collection.js:598
}}