From owner-freebsd-questions Sat Dec 9 9:51:41 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 9 09:51:39 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from apotheosis.org.za (apotheosis.org.za [137.158.128.27]) by hub.freebsd.org (Postfix) with ESMTP id 64CB037B400 for ; Sat, 9 Dec 2000 09:51:36 -0800 (PST) Date: Sat, 9 Dec 2000 19:51:16 +0200 From: Matthew West To: Kris Doyle Cc: freebsd-questions@freebsd.org Subject: Re: Limitiing ps for user accounts Message-ID: <20001209195116.A75229@apotheosis.org.za> Mail-Followup-To: Matthew West , Kris Doyle , freebsd-questions@freebsd.org References: <001f01c05973$a676f9a0$697df7a5@d1s1s1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001f01c05973$a676f9a0$697df7a5@d1s1s1>; from "Kris Doyle" on Tue, Nov 28, 2000 at 02:44:38PM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Use the "kern.ps_showallprocs" sysctl knob. Run "sysctl -w kern.ps_showallprocs=0" as root. Put "kern.ps_showallprocs=0" in your /etc/sysctl.conf file to make your system do this whenever it boots up. This will hide other users' processes in both 'top' and 'ps'. The restrictions do not apply to thel 'root' user though. Users can still interrogate your "/proc" directory though, so you may want to unmount that if you're feeling really paranoid. Just be aware that some programmes require access to "/proc" to run correctly. -- mwest@uct.ac.za On Tue, Nov 28, 2000 at 02:44:38PM -0500, Kris Doyle wrote: > Is their any way to make it so ps -awx as a normal > user only shows their processes ie ps -wux or > something close to that. I've seen another server > do that I was wondering how to do it for my box. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message