Details
-
Bug
-
Resolution: Incomplete
-
Major - P3
-
None
-
None
-
None
-
ALL
Description
Default, we can connect to mongo without password, it's not secure.
I want any user connect to mongodb have to enter password.
I comment out this line in the /etc/mongod.conf file
auth = true
After that we can connect to mongodb using password. But when execute command, i see the errors
uncaught exception: {
"ok" : 0,
"errmsg" : "not authorized on dbname to execute command
",
"code" : 13
}
Please help
HIEUPT