command line shown by ps

Root Boy Jim rbj at uunet.UU.NET
Tue Feb 26 17:09:50 AEST 1991


In article <JOCKC.91Feb20103537 at hammer.idsila.com> jockc at hammer.idsila.com (PRIV Account) writes:
>How can a process change or obscure the command line that
>ps (and other programs like w or whodo) show for it?  

Get a copy of the sendmail source and look at setproctitle.
Basicly, it overwrites it's arguments. We include a line
in our /etc/rc that says: FILLER="                        "
to leave lots to environment space to trash (comes after arguments).
This works for BSD. I dunno what SV does.
-- 
		[rbj at uunet 1] stty sane
		unknown mode: sane



More information about the Comp.unix.questions mailing list