Details
-
Question
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
None
-
Windows 32
Description
I tried testing the read only user on the new mongodb version and I can not not get read-only to work. I did this test on my PC, and not in our real production environment.Here is my test. Firt I started mongo, and create an admin user "george". Then I restarted mongod with the --auth option.
C:\mongoDB\mongodb-win32-i386-2.2.0\bin>mongo
MongoDB shell version: 2.2.0
connecting to: test
> use admin
switched to db admin
> db.auth("george","george")
1
> use ops
switched to db ops
> db.addUser("geo","geo",true)
> db.ll.save(
{fname:"Two"})
> db.ll.find()
> exit
bye
It should not let me save the "Two" right?
Thanks