From owner-freebsd-questions Thu May 2 10:11:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail7.nc.rr.com (mail7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id E235137B419 for ; Thu, 2 May 2002 10:11:18 -0700 (PDT) Received: from i8k.babbleon.org ([66.57.86.84]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Thu, 2 May 2002 13:11:07 -0400 Received: by i8k.babbleon.org (Postfix, from userid 111) id EC819BB29; Thu, 2 May 2002 13:11:02 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: "default" , "FreeBSD-Questions" Subject: Re: Restricting PS Use Date: Thu, 2 May 2002 13:11:02 -0400 X-Mailer: KMail [version 1.3] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020502171102.EC819BB29@i8k.babbleon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday 02 May 2002 12:58 pm, default wrote: | Hello, | | I have been trying to get this working for a long time to no avail, but... | | Basically I need to restrict the PS command so that normal users are only | able to see their own processes... | | I would appreciate any suggestion on how to do this... | - create a "ps" userid - restrict ps so that only "PS" can execute it (root will be able to anyay). - create a new ps command, probably just as a perl script, in /usr/local/bin - make the perl script suid to the new "ps" id. - Have the perl script execute ps and filter out the records you don't want. You can now restrict ps in any way you desire. | Thank you | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-questions" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org If you smell the smoke you don't need to be told what you've got to do; Yet there's a certain breed, so very in-between, they'd rather take a vote. -- DEVO -- Here To Go To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message