Not authorized for query on admin.system.namespaces on mongodb

前端 未结 6 827
暗喜
暗喜 2021-02-02 00:07

I start a new mongo instance, create a user, authorize it, but when I run \"show collections\", the system says that the id is not authorized. I do not know why?



        
6条回答
  •  一向
    一向 (楼主)
    2021-02-02 00:53

    I would try granting the read role to the user. userAdminAnyDatabase grants the ability to administer users.

提交回复
热议问题