title: Mongodb error in creating user in version 2.6.4
body: <p>Mongodb not allowing to add the user. Version am using is 2.6.4.</p>
  
  <p>Here is the step I have followed:</p>
  
  <pre><code>root@prd-app-mongodb-replicaset-s01:/home/vijay# mongo admin
  MongoDB shell version: 2.6.4
  connecting to: admin
  &gt; db.createUser({user: "xxxx",pwd: "xxxxx",roles: [ "root" ]});
  2014-08-12T09:42:26.480-0700 Error: couldn't add user: not master at src/mongo/shell/db.js:1004
  </code></pre>