bash - Hiding passwords from the command line in linux -
for bash script, using read -s
hide password input user. after script has run, used history
command see if passwords showed up, , did not. later learned type of history, csh history. cannot seem figure out how view history.
if show in csh history, how hide user input showing on histories on linux box.
csh shell, alternative bash. history matter if uses it. if script doesn't take passwords on command line, should fine when run csh well. can test it:
$ csh <-- launches interactive csh $ ./script.sh <-- run script <whatever> $ history <-- show csh history ... $ exit <-- drops out of csh , previous shell
so if nothing concerning shows in history, you're fine.
Comments
Post a Comment