Mongodb perm
-
I use mongodb, but i get this
"not authorized on nodebb_se_dev to execute command { serverStatus: 1 }"
What perm is recommended for the nodebb users, I want it as safe as possible.
I have this:
db.createUser( { user: "myuser", pwd: "<Enter in a secure password>", roles: [ "readWrite" ] } )
I found this
db.serverStatus() got not authorized on admin to execute command
My mongo version : 2.6.11 I want to check db.serverStatus() in my robomomgo But got errmsg: { "ok" : 0, "errmsg" : "not authorized on admin to execute command { serverStatus: 1.0 }", ...
Database Administrators Stack Exchange (dba.stackexchange.com)
But i don't want to add any rights to the admin DB only nodebb_se_dev. But the serverstatus is only for the admin db or what?
What role am I missing?
Copyright © 2024 NodeBB | Contributors