'm having some real trouble changing some user rights. Currently, we are trying to do an eval() function in a controlled way (basically through PHP's execute function: http://www.php.net/manual/en/mongodb.execute.php). I've enabled authentication and added some users:
admin = db.getSiblingDB('admin');
admin.addUser("superadmin", "somepass");
admin.auth("superadmin", "somepass");
bigdata = db.getSiblingDB('bigdata');
bigdata.addUser("datauser", "anotherpass");
How can I give the datauser the right permissions here?
Thank you.