From owner-freebsd-isp Sun Aug 20 18:58:14 2000 Delivered-To: freebsd-isp@freebsd.org Received: from databits.net (analog.databits.net [207.29.192.55]) by hub.freebsd.org (Postfix) with SMTP id 99CC637B424 for ; Sun, 20 Aug 2000 18:58:11 -0700 (PDT) Received: (qmail 27234 invoked by uid 1000); 21 Aug 2000 00:58:03 -0000 Date: Sun, 20 Aug 2000 20:58:02 -0400 From: Pete Fritchman To: Mike Cc: freebsd-isp@freebsd.org Subject: Re: ps question Message-ID: <20000820205802.B27829@databits.net> References: <4.3.2.7.2.20000820205038.00b2b648@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <4.3.2.7.2.20000820205038.00b2b648@127.0.0.1>; from mike@mikesweb.com on Sun, Aug 20, 2000 at 08:51:25PM -0400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org # mv /bin/ps /bin/ps. # cat > /bin/ps #!/bin/sh /bin/ps. -x ^D # You can add tests into the script for arguments or the UID/GID calling it, you get the idea. Basically you need to write a script wrapper. Of course, the above average luser who _really_ wants to see processes will figure that out and find /bin/ps. to use. Warning, this may have some unwanted side effects... -Pete ++ 20/08/00 20:51 -0400 - Mike: >Quick question, how do I make 'ps' work so no matter how users run it, it >only shows them their processes, and only root can see what -a would display? >thanks >Mike > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-isp" in the body of the message -- Pete Fritchman Databits Network Services, Inc http://www.databits.net finger: petef@analog.databits.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message