title: Not authorized for query on admin.system.namespaces on mongodb
body: <p>I start a new mongo instance, create a user, authorize it, but when I run "show collections", the system says that the id is not authorized. I do not know why?</p>
  
  <pre><code># mongo admin
  MongoDB shell version: 2.4.3
  connecting to: admin
  Server has startup warnings:
  Thu May 23 18:23:56.735 [initandlisten]
  Thu May 23 18:23:56.735 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
  Thu May 23 18:23:56.735 [initandlisten] **       32 bit builds are limited to less than 2GB of data (or less with --journal).
  Thu May 23 18:23:56.735 [initandlisten] **       See http://dochub.mongodb.org/core/32bit
  Thu May 23 18:23:56.735 [initandlisten]
  &gt; db = db.getSiblingDB("admin")
  admin
  &gt; db.addUser({user:"sa",pwd:"sa",roles:["userAdminAnyDatabase"]})
  {
          "user" : "sa",
          "pwd" : "75692b1d11c072c6c79332e248c4f699",
          "roles" : [
                  "userAdminAnyDatabase"
          ],
          "_id" : ObjectId("519deedff788eb914bc429b5")
  }
  &gt; show collections\
  Thu May 23 18:26:50.103 JavaScript execution failed: SyntaxError: Unexpected token ILLEGAL
  &gt; show collections
  Thu May 23 18:26:52.418 JavaScript execution failed: error: {
          "$err" : "not authorized for query on admin.system.namespaces",
          "code" : 16550
  } at src/mongo/shell/query.js:L128
  &gt; db.auth("sa","sa")
  1
  &gt; show collections
  Thu May 23 18:27:22.307 JavaScript execution failed: error: {
          "$err" : "not authorized for query on admin.system.namespaces",
          "code" : 16550
  } at src/mongo/shell/query.js:L128
  </code></pre>