From owner-freebsd-questions Thu Nov 15 3: 1:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id A718037B405 for ; Thu, 15 Nov 2001 03:01:31 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 15 Nov 2001 11:01:30 +0000 (GMT) To: Dmitry Mottl Cc: freebsd-questions@FreeBSD.org Subject: Re: question about ps In-Reply-To: Your message of "Thu, 15 Nov 2001 13:07:12 +0300." <3BF393D0.4090209@sinp.msu.ru> Date: Thu, 15 Nov 2001 11:01:30 +0000 From: Ian Dowse Message-ID: <200111151101.aa64125@salmon.maths.tcd.ie> 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 In message <3BF393D0.4090209@sinp.msu.ru>, Dmitry Mottl writes: >Hi, All > >how ps does it's work? > >why it can lists processes even, >when I have no /proc and /dev/kmem? I believe it uses the "kern.proc.all" sysctl which returns information about all processes in a binary format. If you don't want users to be able to see users' processes with ps, set the sysctl "kern.ps_showallprocs" to 0, i.e: # sysctl -w kern.ps_showallprocs=0 Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message