3 ms·
An envvar with a fallback of read -s might be the best compromise?
by kitotik 6y ago
An envvar with a fallback of read -s might be the best compromise?
- R0b0t1 6y agoThese can be recorded also, the best way is likely a password/key file.
- forty 6y agoTip: if you prefix your command by a space in bash (and maybe other shells) that command doesn't get recorded in history.
- visualphoenix 6y agoDon’t go doing this and expecting it’s the default behavior. It’s not. Your bash session must have set, at minimum: HISTCONTROL=“ignorespace”
- R0b0t1 6y agoIssue is /proc/$pid/environ if enabled. Envvars are visible just like args. I think there are other ways to recover if on same uid.