3 ms·
I dislike people seeing my command line arguments, though.
by rdl 15y ago
I dislike people seeing my command line arguments, though.
- shabble 15y agoWon't 'ps aux' show them anyway? I imagine there are some restricted userland tools available for shared hosts to use, but having just checked on a couple of my personal machines, it'll display arguments even for processes started by root. In the past I've wrapped things in a trivial shell-script to hide their args (and messing with $0 from a perl script can probably be used for fun & games, if desired)
- rdl 15y agoOh, absolutely. I personally think the UNIX security model is broken for multiuser, so I basically run systems in dedicated security mode (as does ~everyone else; single-user laptop/desktops under OSX or Linux, and servers dedicated to a single user/task/application, or at least VMs dedicated to a single user/task). UNIX local system security is still nice as a belt-and-suspenders thing, but once someone's on a box, assume they own it. The only exception is some special magic stuff like Hardware Security Modules.
- chromatic 15y agoI mess with $0 from Perl programs to show the status of batch processes: http://www.modernperlbooks.com/mt/2011/12/track-app-progress-with-writeable-0.html http://www.modernperlbooks.com/mt/2011/12/track-app-progress...
- delinka 15y agoThis is why it's a bad idea to provide passwords via arguments to commands. For example: mysql --user=root --password=iluvmuffy44
- bdunbar 15y agoI was appalled when an application - one we paid a lot of money for - did just that by default. Which is funny because their app sits on top of WebLogic which provides an easy-peasy way of encrypting the passwords. The vendor either doesn't know enough about WLS to make it happen or they don't care.