| Steps To Reproduce: |
> use test
|
switched to db test
|
> db.x.save( {} )
|
> db.addUser({user: "x", pwd: "x", roles: ["dbAdmin"]})
|
{
|
"user" : "x",
|
"pwd" : "16f0d7830e94ddd4d04d1a7262e7677c",
|
"roles" : [
|
"dbAdmin"
|
],
|
"_id" : ObjectId("525574d2ae46ef9ada6138ad")
|
}
|
> db.auth("x", "x")
|
1
|
> db.runCommand({convertToCapped: "x", size: 1000})
|
{
|
"ok" : 0,
|
"errmsg" : "cloneCollectionAsCapped failed: { ok: 0.0, errmsg: \"not authorized
|
on roles_commands_2 to execute command { cloneCollectionAsCapped: \"x\",
|
toCollection: \"tmp.convertToCapped.x\", size: 1000....\", code: 13 }"
|
}
|
|