Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2002 13:15:42 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Jorge Mario G." <murcielako@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: disallowing "ps aux"
Message-ID:  <20020818181541.GH74231@dan.emsphone.com>
In-Reply-To: <20020818173816.31506.qmail@web13805.mail.yahoo.com>
References:  <20020818173816.31506.qmail@web13805.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 18), Jorge Mario G. said:
> HI
> I want disallow the ps aux command for my users
> so they cant see all the proceses in the machine
> 
> example if a user types ps aux its should get just his
> proceses no the proceses of the entire machine

Set the sysctl kern.ps_showallprocs (or security.bsd.see_other_uids if
you're running -current) to 0.  This is documented in the ps manpage.

-- 
	Dan Nelson
	dnelson@allantgroup.com

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?20020818181541.GH74231>