Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 23:36:58 +0100
From:      "Benedikt Schmidt" <s_bschmi@ira.uka.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: bash... ?
Message-ID:  <20011110233658.A1148@wn4-marvin.wn4.uni-karlsruhe.de>
In-Reply-To: <20011111084222.I35710@k7.mavetju.org>
References:  <20011110174617.99683.qmail@web21106.mail.yahoo.com> <20011111084222.I35710@k7.mavetju.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Groothuis <edwin@mavetju.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011110233658.A1148>