Quantcast
Channel: Shell script password security of command-line parameters - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by puja for Shell script password security of command-line parameters

How about using a file descriptor approach: env -i bash --norc # clean up environment set +o history read -s -p "Enter your password: " passwd exec 3<<<"$passwd" mycommand <&3 # cat...

View Article



Answer by grep for Shell script password security of command-line parameters

The called program can change its command line by simply overwriting argv like this: #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { int arglen =...

View Article

Answer by Kilian Foth for Shell script password security of command-line...

The only way to escape from being shown in the the process list is if you reimplement the entire functionality of the program you want to call in pure Bash functions. Function calls are not seperate...

View Article

Answer by sehe for Shell script password security of command-line parameters

Command lines will always be visible (if only through /proc). So the only real solution is: don't. You might supply it on stdin, or a dedicated fd: ./my_secured_process some parameters 3<<<...

View Article

Shell script password security of command-line parameters

If I use a password as a command-line parameter it's public on the system using ps. But if I'm in a bash shell script and I do something like: ... { somecommand -p mypassword } ... is this still going...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images