From owner-freebsd-questions Wed Nov 29 7: 8: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 8A7AA37B401 for ; Wed, 29 Nov 2000 07:08:04 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 1418q2-0003Nv-00; Wed, 29 Nov 2000 15:08:03 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by buffy.raggedclown (8.10.2/8.10.2) id eATEj5h02132; Wed, 29 Nov 2000 15:45:05 +0100 From: Cliff Sarginson Date: Wed, 29 Nov 2000 15:45:04 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: "Kris Doyle" , References: <001f01c05973$a676f9a0$697df7a5@d1s1s1> In-Reply-To: <001f01c05973$a676f9a0$697df7a5@d1s1s1> Subject: Re: Limitiing ps for user accounts MIME-Version: 1.0 Message-Id: <00112915450401.02021@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday 28 November 2000 20:44, Kris Doyle wrote: > Is their any way to make it so ps -awx as a normal > user only shows their processes ie ps -wux or > something close to that. I've seen another server > do that I was wondering how to do it for my box. > Write a shell script called ps. This script can either call the real ps and use awk/sed whatever to filter out undesirable information..or you could do some analysis of the flags etc.. Make sure this ps script occurs earlier in the user's search path than the directory where ps lives. To stop them directly running ps if they know the full path to it "hide" it somewhere. Cliff This will sure piss some of your users off ... btw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message