For some reason that I ignore, I cannot get rid of a user in mongodb.
This is how it goes:
myReplSet:PRIMARY> db.dropUser("sysadmin3")
false
myReplSet:PRIMARY>
and I am logged in with a user, whith this kind of role:
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
And if I run this, I can see the user sysadmin3 is present.
myReplSet:PRIMARY> db.system.users.find().pretty()
Has somebody already seen this?