-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Admin
-
None
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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