3

Whichever command i execute using password and other secrets that appears/display while doing ps aux.

For example: i want to connect with mysql db:

/usr/bin/mysql -h hostname -u username --password=password dbname

another command:

curl https://somesite/$HOST/$USER

While executing both command in meanwhile time when i do "ps aux" which display secrets as Hostname and password in process table.

What's best way to hide secrets from process table.?

As i know hidepid=2 hide process from other user which actually is not my solution of above problem.

Aserre
  • 4,916
  • 5
  • 33
  • 56
Ajay Gupta
  • 69
  • 4

0 Answers0