11
I am logged with a user that has readWriteAnyDatabase, dbAdminAnyDatabase, userAdminAnyDatabase, clusterAdmin but still can not copy database. I am able to access and create collections in both databases individually.
> use admin
> db.auth('user', 'password')
> db.copyDatabase('database1', 'database2')
{ "ok" : 0, "errmsg" : "unauthorized" }
Mongodb version is 2.4.5