title: Mongodb not working either addUser or createUser
body: <p>I am using old version of mongo version 2.2.3
  I install it on 64 bit server</p>
  
  <pre><code>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  
  echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
  
  sudo apt-get update
  
  apt-get install mongodb-10gen=2.2.3
  </code></pre>
  
  <p>When I tried to create user</p>
  
  <pre><code>1.
       pt@ubuntu:~$ mongo
      MongoDB shell version v3.4.0
      connecting to: mongodb://127.0.0.1:27017
      MongoDB server version: 2.2.3
      WARNING: shell and server versions do not match
  </code></pre>
  
  <p>2.</p>
  
  <pre><code> &gt; use admin
  switched to db admin
  &gt; db.addUser("admin","password")
  2016-12-21T17:46:09.712+0530 E QUERY    [main] TypeError: db.addUser is not a function :
  @(shell):1:1
  
  
  
  
      db.createUser({user:"admin",pwd:"password",roles:["adminUser"]})
          2016-12-21T17:48:02.435+0530 E QUERY    [main] Error: 'createUser' command not found.  This is most likely because you are talking to an old (pre v2.6) MongoDB server :
          DB.prototype.createUser@src/mongo/shell/db.js:1281:1
          @(shell):1:1
  </code></pre>
  
  <p>Not clearly mentioned in mongodocs.</p>