<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ps -ef in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491446#M19558</link>
    <description>So many ways to answer this...here's just one:&lt;BR /&gt;&lt;BR /&gt;You could set up a small script in their .profile that runs as soon as they login and gives them options to choose what you want to allow them do to...within the script when they select the ps -ef option it would grep and only extract their jobs...&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
    <pubDate>Thu, 08 Feb 2001 16:42:56 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2001-02-08T16:42:56Z</dc:date>
    <item>
      <title>ps -ef</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491445#M19557</link>
      <description>What change can I make on a HP-9000 sever running OS 10.20 that will only allow users to see their own process when doing a ps -ef command.  I do not wish general users to have access to see all processes system or other users.&lt;BR /&gt;&lt;BR /&gt;R-</description>
      <pubDate>Thu, 08 Feb 2001 16:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491445#M19557</guid>
      <dc:creator>richard barr</dc:creator>
      <dc:date>2001-02-08T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ps -ef</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491446#M19558</link>
      <description>So many ways to answer this...here's just one:&lt;BR /&gt;&lt;BR /&gt;You could set up a small script in their .profile that runs as soon as they login and gives them options to choose what you want to allow them do to...within the script when they select the ps -ef option it would grep and only extract their jobs...&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Thu, 08 Feb 2001 16:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491446#M19558</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-02-08T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: ps -ef</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491447#M19559</link>
      <description>Richard:&lt;BR /&gt;&lt;BR /&gt;Here's one way [if you can take (and keep)control of the user's profile].&lt;BR /&gt;&lt;BR /&gt;Add to the user's profile at the end, the following:&lt;BR /&gt;&lt;BR /&gt;# function ps&lt;BR /&gt;# {&lt;BR /&gt;#   if [ $# -eq 0 ]&lt;BR /&gt;#   then&lt;BR /&gt;#     command ps&lt;BR /&gt;#   else&lt;BR /&gt;#     command ps $@|grep $LOGNAME&lt;BR /&gt;# fi&lt;BR /&gt;# }&lt;BR /&gt;&lt;BR /&gt;This will allow the user to do the 'ps' command with or without options but will show only processes associated with him/her.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 08 Feb 2001 22:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491447#M19559</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-02-08T22:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: ps -ef</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491448#M19560</link>
      <description>Hello Richard,&lt;BR /&gt;&lt;BR /&gt;just move the "ps" codefile aside to something like&lt;BR /&gt;"/usr/bin/ps2" and change group to a new group &lt;BR /&gt;like "psgrp". Then change permissions to make it&lt;BR /&gt;executable only for that group, i.e. "chmod 710 ps2".&lt;BR /&gt;Now create a shell-script in the place of the old "ps",&lt;BR /&gt;permissions "2551", i.e. SGID and owned by group&lt;BR /&gt;"psgrp" and a content like that:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;usage() {&lt;BR /&gt;    echo "illegal parameter: -u|-e are not allowed" &amp;gt;&amp;amp;2&lt;BR /&gt;    exit 1;&lt;BR /&gt;}&lt;BR /&gt;args=""&lt;BR /&gt;while [ $# -gt 0 ]; do&lt;BR /&gt;    case "$1" in&lt;BR /&gt;        -*e*|        -*u*)  usage ;;&lt;BR /&gt;        -*|        *)       args="$args $1" ;;&lt;BR /&gt;    esac&lt;BR /&gt;    shift&lt;BR /&gt;done&lt;BR /&gt;/usr/bin/ps2 -u $(logname) $args&lt;BR /&gt;# end of script&lt;BR /&gt;&lt;BR /&gt;It is not bullet proof but should give you an idea ;-)&lt;BR /&gt;The only "dangerous" options would be "-e" (each&lt;BR /&gt;process) and "-u username", the rest is ok. And call&lt;BR /&gt;it with "-u $(logname)" to make shure your user is&lt;BR /&gt;able to see his/her own processes in different sessions!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Sat, 10 Feb 2001 21:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-ef/m-p/2491448#M19560</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-02-10T21:23:50Z</dc:date>
    </item>
  </channel>
</rss>

