--- Simons <[EMAIL PROTECTED]> wrote:
> but users still can get full process list by 'ps -ef' , I
> want to make the
> ps show users own process only, even they do ps -ef
> any idea?
> 


A couple of thoughts, with the disclaimer that I may not
know what the hell I'm talking about ... :)

You can write some kind of wrapper, as was suggested by
another response. In perl, it'd be something like:

#!/usr/bin/perl -w
use strict;
my @lines = `ps_real @ARGV`;   # preserve their args,
rename
                               # ps to ps_real
my $user = $_; # this is wrong; Can the variables $> or $<
               # be used to find the name of the calling   
                # user?
print grep(/$user/, @lines);

Also, it seems like you'd have to change the permissions on
the 'real' ps so that only root could run it.

=====
Ken Gosier
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to