Linux Mint - Free and powerful

Tuesday, 16 September 2014

Rubedo CMS - Adding Users to MongoDB 2.4.6 on Linux Mint

Managing MongoDB seems a bit archaic as it is pretty much command line work.

However, for Rubedo we will stick to the absolute basics.

There are some third party gui's available at this link: 

Creating new users

db.addUser ('rayd', 'password')
"_id" : ObjectId("54185853e7608f92d652bab0"),
"user" : "rayd",
"readOnly" : false,
"pwd" : "1c63b366cd4fed6c359398b23b50fe56"

Add a read only user

db.addUser ('raydro', 'password', true)

Remove a user


Authorise against a database

use admin

db.auth('rayd', 'password')

The output from the Mongod console

Tue Sep 16 16:33:39.987 [FileAllocator] done allocating datafile /data/db/admin.1, size: 128MB,  took 0.064 secs
Tue Sep 16 16:44:05.028 [conn1]  authenticate db: admin { authenticate: 1, nonce: "31a7bfafa67593e9", user: "rayd", key: "f3f518e53650f6b1c5ce5e46e14e1e32" }

Restart MongoDB with authorisation and rest

mongod --auth --rest


Post a Comment

Thank you for taking the time to comment. Your opinion is important and of value and we appreciate the positive feedback! If you are "Negative Nancy" then please do us, and humanity, a favor, and piss off.

Total Pageviews

Google+ Followers


Blog Archive

Popular Posts

Recent Comments

Rays Twitter feed


Web sites come and go and information is lost and therefore some pages are archived. @rayd123. Powered by Blogger.