Hi,
I have upgraded my mongo db 2.4.10 to 2.6 and i run the following commands.
db.upgradeCheckAllDBs();
db.adminCommand({authSchemaUpgrade: 1 });After that i again upgrade my db to 3.0.2 and mongo process running with auth enabled. I am already having few dbs with user with role as "
dbOwner". But using that user I am not able to run the eval script from the mongo shell. I am getting error while running the eval script from the db "
abc" after authenticated with
db.auth() command.
Unauthorized not authorized on abc to execute command { $eval: "deleteInfoDetails()" }I am using the same user as the dbOwner for multiple databases. What kind of role should i add to support in eval script in multiple databases. And also i am using node js mongodb library version 2.0.33. when i execute the code like below not running.
db.open(function(err,result) {
// the db.admin not working db.admin(function(err,admindb) {
});
});
Can anyone help to solve this problem?