Date: Thu, 15 Nov 2001 11:01:30 +0000 From: Ian Dowse <iedowse@maths.tcd.ie> To: Dmitry Mottl <dima@sinp.msu.ru> Cc: freebsd-questions@FreeBSD.org Subject: Re: question about ps Message-ID: <200111151101.aa64125@salmon.maths.tcd.ie> In-Reply-To: Your message of "Thu, 15 Nov 2001 13:07:12 %2B0300." <3BF393D0.4090209@sinp.msu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200111151101.aa64125>