Actually , I am running a mongodb 2.4 with auth enabled and wants to upgrade to 2.6
well instructions in upgarde 2.6 says.. that
Before beginning the upgrade process for a deployment that uses authentication and authorization:
so i have to add user with the role userAdminAnyDatabase in 2.4 before copies binaries of 2.6 ?
in cuurent 2.4 shell added user with role userAdminAnyDatabase and then schema upgrade with userAdminAnyDatabase role after coping binaries of 2.6
> db.addUser( { user: "a", pwd: "pass", roles: [ "userAdminAnyDatabase" ] } )
is it the right way.. do i need to add read write access as well? i think i might not get below error if i go into admin database with role userAdminAnyDatabase
> show collections
2016-02-22T18:51:10.765-0500 error: {
"$err" : "not authorized for query on oasis.system.namespaces",
"code" : 13
} at src/mongo/shell/query.js:131
Actually , I am running a mongodb 2.4 with auth enabled and wants to upgrade to 2.6
well instructions in upgarde 2.6 says.. that
Before beginning the upgrade process for a deployment that uses authentication and authorization:
- Ensure that at least one user exists in the admin database with the role userAdminAnyDatabase.
- then upgrade binaries
- then run athorization schema format if needed
so i have to add user with the role userAdminAnyDatabase in 2.4 before copies binaries of 2.6 ?
is it the right way.. do i need to add read write access as well? i think i might not get below error if i go into admin database with role userAdminAnyDatabase