[SERVER-44706] Mongodump does not prompt for password, instead requires password to be put in clear text Created: 18/Nov/19  Updated: 19/Nov/19  Resolved: 19/Nov/19

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 3.4.23
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Parvathi Subramanyam Assignee: Carl Champain (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Mongodump does not prompt for password, instead requires password to be put in clear text.

mongodump --host <servername> --port <port> --user <username> --password
2019-11-18T12:07:10.088-0500 error parsing command line options: expected argument for flag `-p, --password'
2019-11-18T12:07:10.088-0500 try 'mongodump --help' for more information



 Comments   
Comment by Carl Champain (Inactive) [ 19/Nov/19 ]

Hi parbalsu@gmail.com,

If you want to get a prompt for the password, our documentation mentions that you need to pass an empty string to --password "", or your need to pass the --username option without --password.

That said, the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag

Kind regards,
Carl

Generated at Thu Feb 08 05:06:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.