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

Prompt for username and password

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • 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

            mark.agarunov Mark Agarunov
            Abhi Abhishek [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: