From owner-freebsd-questions Sat Nov 10 14:36:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by hub.freebsd.org (Postfix) with ESMTP id 4003737B41A for ; Sat, 10 Nov 2001 14:36:55 -0800 (PST) Received: from wn4-marvin.wn4.uni-karlsruhe.de (steele@wn4-marvin.wn4.uni-karlsruhe.de [172.20.12.211]) by mailgate.rz.uni-karlsruhe.de with smtp (Exim 3.16 #1) id 162gk9-0002gz-00; Sat, 10 Nov 2001 23:36:54 +0100 Received: by wn4-marvin.wn4.uni-karlsruhe.de (sSMTP sendmail emulation); Sat, 10 Nov 2001 23:36:58 +0100 Date: Sat, 10 Nov 2001 23:36:58 +0100 From: "Benedikt Schmidt" To: freebsd-questions@freebsd.org Subject: Re: bash... ? Message-ID: <20011110233658.A1148@wn4-marvin.wn4.uni-karlsruhe.de> Mail-Followup-To: freebsd-questions@freebsd.org References: <20011110174617.99683.qmail@web21106.mail.yahoo.com> <20011111084222.I35710@k7.mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011111084222.I35710@k7.mavetju.org> User-Agent: Mutt/1.3.22.1i 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 Edwin Groothuis wrote: > On Sat, Nov 10, 2001 at 09:46:17AM -0800, Henry smith wrote: > > How to make normal user can't see the whole system ? > > ex: > > login: test > > when I do 'ps x', > > I can see other users process, or even root's process. > > You shouldn't. That behaviour should only happen with 'ps ax'. > > > How to make when I do 'ps x' only show the proccess > > that runs under user 'test' ? > > Compile it without the 'a' option (you have to dig through the > sources for that), but it will stop nobody from compiling a proper > working ps command. Perhaps, he is looking for "sysctl -w kern.ps_showallprocs=0". (on stable, the name has been changed on current) -- Benedikt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message