From owner-freebsd-questions Sun May 5 18:25:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mirapoint2.brutele.be (mirapoint2.brutele.be [212.68.193.7]) by hub.freebsd.org (Postfix) with ESMTP id 6913F37B408 for ; Sun, 5 May 2002 18:25:29 -0700 (PDT) Received: from gateway.lefort.net ([213.189.162.78]) by mirapoint2.brutele.be (Mirapoint) with SMTP id AXM66055; Mon, 6 May 2002 03:25:26 +0200 (CEST) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 6958315303; Mon, 6 May 2002 03:25:25 +0200 (CEST) Received: by jsite.lefort.net (Postfix, from userid 1000) id 939BE22EEB; Mon, 6 May 2002 03:25:21 +0200 (CEST) Date: Mon, 6 May 2002 03:25:21 +0200 From: Jean-Yves Lefort To: FreeBSD-Questions Cc: default Subject: Re: Quick Question Regarding PS Message-ID: <20020506032521.A26795@jsite.lefort.net> Mail-Followup-To: FreeBSD-Questions , default References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from default013subscriptions@hotmail.com on Sun, May 05, 2002 at 08:02:58PM -0500 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 Sun, May 05, 2002 at 08:02:58PM -0500, default wrote: > Hi, I'm running on FreeBSD 4.1 which doesn't have the sysctl option > (showallprocs) ... I am trying to think of a good way to let my users only > see their own processes, and I am not much of a programmer... > > I was thinking of making a bash script that would do ps only showing the > user's processes, replacing the ps command with that, and changing ps's name > to something that no one would think of... > > but... before I do... I was wondering, are there any system resources that > use PS? ... anything I should be worried about in this scenario? I really don't like to flame (or maybe I do like it, sometimes), but: 1) I searched really hard, but I couldn't find your name in the message. 2) From the ps(1) manual page: "The process file system (see procfs(5)) should be mounted when ps is executed, otherwise not all information will be available." Maybe you could read the appropriate manpage before increasing the volume of this list? > Thanks much You are welcome. Best regards, Jean-Yves Lefort -- * Jean-Yves Lefort -- jylefort@brutele.be -- http://lefort.homeunix.org/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message