Please, do not send HTML e-mail to this list, or any list for that matter.
Look at the amount of net bandwidth that was wasted sending this e-mail
and the amount of space wasted in the in boxes of list members.

Also, read the original question carefully.  The poster wants to limit
ps so that when users use it, it will only display the processes they have
running.

I do not believe that it can be done.  Even if the user's account was set
up with an alias that did "ps -ef | grep $USER," the user could easily remove
that alias or run the real ps.

MB



>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>
>------_=_NextPart_001_01C325E4.AF34CC30
>Content-Type: text/plain;
>       charset="windows-1252"
>
>ps -ef | grep $USER
>
>works for me
>
>-----Original Message-----
>From: BiLL [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 29, 2003 7:45 AM
>To: [EMAIL PROTECTED]
>Subject: Restrict output of "ps"
>
>
>G'Day,
>
>I am running RedHat 7.0.
>
>Is it possible to restrict the output of "ps" (process list) ?
>So that the users can only see their OWN processes instead of all ? (ps
>aux).
>
>Thanks,
>
>Regards,
>
>BiLL
>
>
>
>-- 
>redhat-list mailing list
>unsubscribe mailto:[EMAIL PROTECTED]
>https://www.redhat.com/mailman/listinfo/redhat-list
>
>------_=_NextPart_001_01C325E4.AF34CC30
>Content-Type: text/html;
>       charset="windows-1252"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>charset=3Dwindows-1252">
><META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
>5.5.2653.12">
><TITLE>RE: Restrict output of &quot;ps&quot;</TITLE>
></HEAD>
><BODY>
>
><P><FONT SIZE=3D2>ps -ef | grep $USER</FONT>
></P>
>
><P><FONT SIZE=3D2>works for me</FONT>
></P>
>
><P><FONT SIZE=3D2>-----Original Message-----</FONT>
><BR><FONT SIZE=3D2>From: BiLL [<A =
>HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
><BR><FONT SIZE=3D2>Sent: Thursday, May 29, 2003 7:45 AM</FONT>
><BR><FONT SIZE=3D2>To: [EMAIL PROTECTED]</FONT>
><BR><FONT SIZE=3D2>Subject: Restrict output of &quot;ps&quot;</FONT>
></P>
><BR>
>
><P><FONT SIZE=3D2>G'Day,</FONT>
></P>
>
><P><FONT SIZE=3D2>I am running RedHat 7.0.</FONT>
></P>
>
><P><FONT SIZE=3D2>Is it possible to restrict the output of =
>&quot;ps&quot; (process list) ?</FONT>
><BR><FONT SIZE=3D2>So that the users can only see their OWN processes =
>instead of all ? (ps</FONT>
><BR><FONT SIZE=3D2>aux).</FONT>
></P>
>
><P><FONT SIZE=3D2>Thanks,</FONT>
></P>
>
><P><FONT SIZE=3D2>Regards,</FONT>
></P>
>
><P><FONT SIZE=3D2>BiLL</FONT>
></P>
><BR>
><BR>
>
><P><FONT SIZE=3D2>-- </FONT>
><BR><FONT SIZE=3D2>redhat-list mailing list</FONT>
><BR><FONT SIZE=3D2>unsubscribe <A =
>HREF=3D"mailto:[EMAIL PROTECTED]">mai=
>lto:[EMAIL PROTECTED]</A></FONT>
><BR><FONT SIZE=3D2><A =
>HREF=3D"https://www.redhat.com/mailman/listinfo/redhat-list"; =
>TARGET=3D"_blank">https://www.redhat.com/mailman/listinfo/redhat-list</A=
>></FONT>
></P>
>
></BODY>
></HTML>
>------_=_NextPart_001_01C325E4.AF34CC30--
>
>
>-- 
>redhat-list mailing list
>unsubscribe mailto:[EMAIL PROTECTED]
>https://www.redhat.com/mailman/listinfo/redhat-list
>


-- 
e-mail: [EMAIL PROTECTED]                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to