Mongodb系统管理员权限设置

 管理员账号无法执行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"
]
}
 
功能全开
这才是超级管理员的权限嘛

你可能感兴趣的:(mongodb)