Error code when enable auth=true , mongodb 2.6

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Default, we can connect to mongo without password, it's not secure.
      I want any user connect to mongodb have to enter password.
      I comment out this line in the /etc/mongod.conf file
      auth = true

      After that we can connect to mongodb using password. But when execute command, i see the errors

      uncaught exception: {
      "ok" : 0,
      "errmsg" : "not authorized on dbname to execute command

      { $eval: \"R900_GETTOTALALL(106)\" }

      ",
      "code" : 13
      }

      Please help
      HIEUPT

            Assignee:
            Unassigned
            Reporter:
            Hieu Phan Trong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: