From owner-freebsd-questions Mon May 6 5: 6:57 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 5CAD637B401 for ; Mon, 6 May 2002 05:06:51 -0700 (PDT) Received: from gateway.lefort.net ([213.189.162.78]) by mirapoint2.brutele.be (Mirapoint) with SMTP id AXN12778; Mon, 6 May 2002 14:06:48 +0200 (CEST) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 264D415282; Mon, 6 May 2002 14:06:48 +0200 (CEST) Received: by jsite.lefort.net (Postfix, from userid 1000) id 955F922EEB; Mon, 6 May 2002 14:06:47 +0200 (CEST) Date: Mon, 6 May 2002 14:06:47 +0200 From: Jean-Yves Lefort To: default Cc: freebsd-questions@FreeBSD.org Subject: Re: Quick Question Regarding PS Message-ID: <20020506140647.B90622@jsite.lefort.net> Mail-Followup-To: default , freebsd-questions@FreeBSD.org References: <20020506032521.A26795@jsite.lefort.net> 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 10:11:17PM -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 10:11:17PM -0500, default wrote: > Thank you for your help, but the man page actually doesn't say anything > about this. The line you refer to mentions that procfs should be mounted > when running ps, not that ps is necessary for procfs to work properly, which > would be the kind of problem that I am looking for. (In other words I'm > looking for applications that are dependant on ps to be there, not things > that ps is dependant on.) You wanted to know if you can disallow your users to see other users processes by replacing the ps command with a homemade script. It seems easy to understand that even if you replace the ps command by a shell script only echoing "We have joy, we have fun, we have rootshell on a Sun!" your users will still be able to gather informations about the processes running on your system, simply by browsing the procfs filesystem, usually mounted in /proc. > Maybe I'll just have a perl script designed. Thanks for you help. > > ----- Original Message ----- > From: "Jean-Yves Lefort" > To: "FreeBSD-Questions" > Cc: "default" > Sent: Sunday, May 05, 2002 8:25 PM > Subject: Re: Quick Question Regarding PS > > > > 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 > > 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