W
W
wiyod2017-10-12 20:56:02
MongoDB
wiyod, 2017-10-12 20:56:02

Why can't dbOwner do show dbs?

The documentation clearly states

The database owner can perform any administrative action on the database. This role combines the privileges granted by the readWrite, dbAdmin and userAdmin roles.

Those. this is generally the most important user who can perform all roles. I created such a user.
{ "_id" : "admin.enduser", "user" : "enduser", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "777777777777777/Lg==", "storedKey" : "777777777777777=", "serverKey" : "7777777777777=" } }, "roles" : [ { "role" : "dbOwner", "db" : "admin" } ] }

And I can't execute a single command, except show collectionsin admin
Where is the logic?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question