(written by lawrence krubner, however indented passages are often quotes). You can contact lawrence at: lawrence@krubner.com

This is surprisingly confusing. It is strange to start MongoDb and be able to access it without needing a username or password.

I got it now. Here is what I document:

1) In mongo command line: (let say, set administrator)
$sudo ./mongodb/bin/mongod –auth –dbpath /mnt/db/ 4) Run mongo again in 2 ways: i) run mongo first then login.$ ./mongodb/bin/mongo localhost:27107