管理员账号无法执行show dbs 、show collections
功能全开
这才是超级管理员的权限嘛若转载请注明出处!若有疑问,请回复交流!
- {
- "_id" : ObjectId("52a82bb26cea234c4deb06fd"),
- "user" : "admin",
- "pwd" : "7c67ef13bbd4cae106d959320af3f704",
- "roles" : [
- "userAdminAnyDatabase"
- ]
- }
- db.system.users.findOne()
- {
- "_id" : ObjectId("52a849331575fa94bad8b7ce"),
- "user" : "admin",
- "pwd" : "7c67ef13bbd4cae106d959320af3f704",
- "roles" : [
- "userAdminAnyDatabase",
- "dbAdminAnyDatabase",
- "readWriteAnyDatabase",
- "clusterAdmin"
- ]
- }
功能全开
这才是超级管理员的权限嘛若转载请注明出处!若有疑问,请回复交流!