Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!dog.ee.lbl.gov!nosc!humu!pegasus!pilikia!art From: art@pilikia.pegasus.com (Art Neilson) Newsgroups: comp.unix.questions Subject: Re: command line shown by ps Message-ID: <1991Feb21.181049.1367@pilikia.pegasus.com> Date: 21 Feb 91 18:10:49 GMT References: Distribution: usa Organization: Pilikia, Honolulu Lines: 13 In article jockc@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? Well, on SYSV.3 there's a field in the user struct called u_psargs which holds the args passed by exec to execute a given process. These show up as the command field in ps listings. You need to be root to write to the user struct, unless of course you are running ISC or ESIX ;^(. I don't know how this is done on berzerkley based systems like Ultrix. -- Arthur W. Neilson III | INET: art@pilikia.pegasus.com Bank of Hawaii Tech Support | UUCP: uunet!ucsd!nosc!pegasus!pilikia!art