title: Cannot access database after authencation enabled
body: <p>I'm using mongodb 2.6.1, Windows 7 64bit</p>
  
  <p>I started <em>mongod</em> without <code>--auth</code> and create a first user using</p>
  
  <pre><code>db.createUser({
      user: "root",
      pwd: "xxx",
      roles:
      [{
          role: "userAdminAnyDatabase",
          db: "admin"
          }]
  })
  </code></pre>
  
  <p>I restarted <em>mongod</em> again with this configuration</p>
  
  <pre><code>systemLog:
    destination: "file"
    path: "c:\\mongodb\\log\\mongo.log"
    quiet: true
    logAppend: true
  storage:
    dbPath: "c:\\mongodb\\data\\db"
    directoryPerDB: true
    smallFiles: true
    journal:
      enabled: true
  net:
    bindIp: 127.0.0.1
    port: 27017
    http:
      enabled: true
      JSONPEnabled: true
      RESTInterfaceEnabled: true
  security:
    authorization: enabled
  </code></pre>
  
  <p>There was no errors, so the authentication has been enabled.</p>
  
  <p>I started <em>mongo</em> using <code>mongo -u root -p --authenticationDatabase admin</code> but I got error message shown below.</p>
  
  <pre><code>MongoDB shell version: 2.6.1
  Enter password:
  connecting to: test
  Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }
  </code></pre>
  
  <p>I tried to use <code>show collections</code> but I got error message shown below.</p>
  
  <pre><code>2014-05-20T00:36:07.801+0700 error: {
          "$err" : "not authorized for query on admin.system.namespaces",
          "code" : 13
  } at src/mongo/shell/query.js:131
  </code></pre>
  
  <p>But when I tried <code>db.system.users.find()</code> I can display the user in the collection without any error messages.</p>
  
  <p>I also tried <code>db.auth("root","xxx")</code> but I got the same result, I can display user but I cannot list available collections.</p>
  
  <p>I have 2 more db which were imported from the older version, without <code>--auth</code> these dbs work just fine, but starting <em>mongod</em> with authentication enabled, I cannot display anything inside those dbs.</p>
  
  <p>Please help, solve the question.</p>