Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2000 15:45:04 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        "Kris Doyle" <colk99@mindspring.com>, <freebsd-questions@freebsd.org>
Subject:   Re: Limitiing ps for user accounts
Message-ID:  <00112915450401.02021@buffy>
In-Reply-To: <001f01c05973$a676f9a0$697df7a5@d1s1s1>
References:  <001f01c05973$a676f9a0$697df7a5@d1s1s1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 28 November 2000 20:44, 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.
>
Write a shell script called ps.
This script can either call the real ps
and use awk/sed whatever to filter out undesirable
information..or you could do some analysis of the
flags etc..

Make sure this ps script occurs earlier in the
user's search path than the directory where ps lives.

To stop them directly running ps if they know the
full path to it "hide" it somewhere.

Cliff

This will sure piss some of your users off ... btw



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