Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31790

Prompt for username and password

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have an issue in mongoDb,

      When I am connecting to the mongodb server it never prompts me for the username and password even I have setup an id and password and enabled security authorization in the /etc/mongod.conf file. After I enter the server by typing "mongo" it shows me the available databases but does not let me perform any operations on them.

      I want it to ask me for the id and the password whenever I type "mongo" to start the mongoDb server. How should I go about it. I don't want to manually enter the command

      mongo -u ******* -p --authenticationDatabase admin
      mongo -u ******* -p ********

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: