[SERVER-11981] calls to db.createUser() function not saved in shell history Created: 05/Dec/13  Updated: 05/Mar/20  Resolved: 05/Dec/13

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

Type: Bug Priority: Major - P3
Reporter: Michael O'Brien Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-46629 Write all shell commands to history Closed
Operating System: ALL
Participants:

 Description   

In a mongo shell, when i call the createUser function and go back through my shell history, it doesn't show up.
This is on 2.5.4 shell with a 2.5.4 server on OSX.

example:

> var x = 12345
> db.createUser({user:"mike", pwd:"blah", roles:[]})
Successfully added user: { "user" : "mike", "roles" : [ ] }
  
(hit arrow up key)
> var x = 12345



 Comments   
Comment by Spencer Brody (Inactive) [ 05/Dec/13 ]

This is done intentionally to keep plaintext password data out of the shell history file.

Generated at Thu Feb 08 03:27:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.