I am running mongo 2.2.2 on osx.
When I do the following authentication is going fine:
$ mongo >> use admin >> db.auth(\"uname\", \"passw
A password containing special characters, especially the dollar sign, has to be put in single quotes to protect them from the command shell:
$ mongo admin -u uname -p 'password'