Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 18:42:55 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        "Kris Doyle" <colk99@mindspring.com>
Cc:        questions@freebsd.org
Subject:   Re: Limitiing ps for user accounts
Message-ID:  <14884.20751.929825.578339@guru.mired.org>
In-Reply-To: <59261701@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Doyle <colk99@mindspring.com> types:
> 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.

Since what ps does isn't privileged, you can't stop someone from
building a ps that shows other users process.

However, disabling the 'a' flag in /usr/src/bin/ps/ps.c is a one-line
change. Just delete the "all = 1;" recompile and reinstall.

	<mike
--
Mike Meyer					http://www.mired.org/home/mwm/
Independent WWW/Unix/FreeBSD consultant,	email for rates.


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?14884.20751.929825.578339>