From owner-freebsd-questions Tue Nov 28 16:42:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 3804437B400 for ; Tue, 28 Nov 2000 16:42:57 -0800 (PST) Received: (qmail 66591 invoked by uid 100); 29 Nov 2000 00:42:56 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14884.20751.929825.578339@guru.mired.org> Date: Tue, 28 Nov 2000 18:42:55 -0600 (CST) To: "Kris Doyle" Cc: questions@freebsd.org Subject: Re: Limitiing ps for user accounts In-Reply-To: <59261701@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Message: You should get a better mailer. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kris Doyle types: > 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. Since what ps does isn't privileged, you can't stop someone from building a ps that shows other users process. However, disabling the 'a' flag in /usr/src/bin/ps/ps.c is a one-line change. Just delete the "all = 1;" recompile and reinstall.