So I have a certain program, which is running almost 24/7.
I have a start script I've written in bash which simply does:
./app --user XXX --pass YYY
There are a few more options, but they are irrelevant to this question.
Once run, the pass will always show in ps for other users and I'm assuming in other places too. How do I prevent this from happening? The application cannot be modified, the only option I have is to do it while passing the password somehow.
It's also very important that the application is started via a script as I am automating its startup and shutdown on several machines. Inputting it manually every time is not really an option.
However I do not need it to be unreadable in the bash script itself. It's okay if it's in plain text there, I only need it secured in places where other users might be able to check running processes, such as ps