From owner-freebsd-questions Wed Nov 29 7:12:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from minerva.springer.cx (cgmd77002.chello.nl [212.83.77.2]) by hub.freebsd.org (Postfix) with SMTP id 8875437B401 for ; Wed, 29 Nov 2000 07:12:40 -0800 (PST) Received: (qmail 99225 invoked from network); 29 Nov 2000 16:10:14 -0000 Received: from aurum.rinkspringer.org (HELO aurum) (172.16.0.2) by minerva.springer.cx with SMTP; 29 Nov 2000 16:10:14 -0000 Message-ID: <000c01c05a7b$63febcd0$020010ac@aurum> From: "Rink Springer" To: "Cliff Sarginson" , "Kris Doyle" , References: <001f01c05973$a676f9a0$697df7a5@d1s1s1> <00112915450401.02021@buffy> Subject: Re: Limitiing ps for user accounts Date: Thu, 30 Nov 2000 04:12:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Cliff Sarginson" To: "Kris Doyle" ; Sent: Wednesday, November 29, 2000 3:45 PM Subject: Re: Limitiing ps for user accounts I don't think there's a 100% fool-proof method for this. I mean, you could just grab ps from another FreeBSD box, upload it and use that instead? The best you could probably do is edit the ps program source, so users won't notice you have a script for it... even tho this can all be avoided, of course. --Rink > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message