How to change password using CLI . We are using script(splunk edit user admin -password -role admin -auth admin:changeme ) to change the password.After the command password getting encryped but when we are trying again to login,again we are getting "changeme" as password?
not sure why @somesoni2 comment is not an answer...
splunk edit user admin -password newPassowrd -auth admin:changeme
not sure why @somesoni2 comment is not an answer...
splunk edit user admin -password newPassowrd -auth admin:changeme
hello. guys i don't understand. in order to change splunk admin pwd i need to know splunk admin pwd ? i don't get it...
Are you specifying the password in the command?
splunk edit user admin -password newPassowrd -auth admin:changeme
For the paranoid among us, you might want to follow this with either history -c
to clear all your history or history -d <linenum>
to delete the line with the password from your history file.
or easier way is to put these lines into a script and call the script and delete the script afterwards
This way it won't show in history of commands.
The easiest way is actually to put a space in front of the command. That shouldn't log it to history.
note: in my testing this behavor is specific to bash on linux.
Even then, the HISTCONTROL variable has to be set before running the command you don't want showing in history. Also, contrary to what I keep reading from Google results, this variable doesn't seem to be automatically set, or at least not on the various Linux distros I've used.