Hacker News new | ask | show | jobs
by msm23 3849 days ago
Running

  ps auxwwe
on Linux, Mac OS X, and other Unix-en will show all processes for all users with their complete environment.

Environment variables should not be used to share secrets.

2 comments

Testing on Linux, if ran as root it does, but if you are running ps auxwwe as normal user, it is only showing env variables for that user.
On FreeBSD, at least, the ability to see processes belonging to other {g,u}id's can be turned off via a sysctl.