<?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 does not show effective uid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188723#M714080</link>
    <description>Hi Rohan,&lt;BR /&gt;&lt;BR /&gt;You could use -u or -U :&lt;BR /&gt;&lt;BR /&gt;  -u uidlist     Select processes whose effective user ID numbers&lt;BR /&gt;                          or login names are given in uidlist.&lt;BR /&gt;&lt;BR /&gt;           -U uidlist     (XPG4 Only.)  Select processes whose real user ID&lt;BR /&gt;                          numbers or login names are given in uidlist.     &lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
    <pubDate>Wed, 11 Feb 2004 04:42:43 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2004-02-11T04:42:43Z</dc:date>
    <item>
      <title>ps does not show effective uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188722#M714079</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am seeing a problem with 'ps' utility when a program changes its effective UID and GID.&lt;BR /&gt;It does not show changed effective UID, instead it shows the original (probably real) UID.&lt;BR /&gt;Though, the UID change is successful and any file created by the program has owenership of effective UID.&lt;BR /&gt;&lt;BR /&gt;Any explainations to the problem?&lt;BR /&gt;&lt;BR /&gt;I have HP-UX 11.11i.&lt;BR /&gt;Attached a sample test program which changes the UID to 'rohan' and waits for input before exit. Following is 'ps' output when the program is waiting,&lt;BR /&gt;bash-2.05b# ps -aef|grep test_sw&lt;BR /&gt;    root 13895  2904  1 14:49:32 pts/td    0:00 grep test_sw&lt;BR /&gt;    root 13876 14520  0 14:48:45 pts/tg    0:00 ./test_sw_uid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Rohan</description>
      <pubDate>Wed, 11 Feb 2004 04:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188722#M714079</guid>
      <dc:creator>Rohan_7</dc:creator>
      <dc:date>2004-02-11T04:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: ps does not show effective uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188723#M714080</link>
      <description>Hi Rohan,&lt;BR /&gt;&lt;BR /&gt;You could use -u or -U :&lt;BR /&gt;&lt;BR /&gt;  -u uidlist     Select processes whose effective user ID numbers&lt;BR /&gt;                          or login names are given in uidlist.&lt;BR /&gt;&lt;BR /&gt;           -U uidlist     (XPG4 Only.)  Select processes whose real user ID&lt;BR /&gt;                          numbers or login names are given in uidlist.     &lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Wed, 11 Feb 2004 04:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188723#M714080</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-02-11T04:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: ps does not show effective uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188724#M714081</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for quick response.&lt;BR /&gt;Actually, I tried that. But it does not show required process if you specify changed effective UID to -u.&lt;BR /&gt;bash-2.05b# ps -u rohan |grep test_sw&lt;BR /&gt;&lt;BR /&gt;No output!&lt;BR /&gt;&lt;BR /&gt;I am running the program as root, so &lt;BR /&gt;bash-2.05b# ps  -u root |grep test_sw&lt;BR /&gt; 13876 pts/tg    0:00 test_sw_uid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Rohan</description>
      <pubDate>Wed, 11 Feb 2004 04:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188724#M714081</guid>
      <dc:creator>Rohan_7</dc:creator>
      <dc:date>2004-02-11T04:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: ps does not show effective uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188725#M714082</link>
      <description>Rohan,&lt;BR /&gt; &lt;BR /&gt;you use the -f option of ps... man ps:&lt;BR /&gt; &lt;BR /&gt;-f&lt;BR /&gt;Show columns user, pid, ppid, cpu, stime, tty, time, and args, in that order.&lt;BR /&gt; &lt;BR /&gt;user&lt;BR /&gt;The login name of the effective process owner.&lt;BR /&gt;  &lt;BR /&gt;EXTERNAL INFLUENCES&lt;BR /&gt;Environment Variables&lt;BR /&gt;UNIX95 specifies to use the XPG4 behavior for this command.  The changes for XPG4 include support for the entire option set specified above and include the following behavioral changes:&lt;BR /&gt; &lt;BR /&gt;+ The uid or user column displayed by -f or -l will display effective user rather than real user.&lt;BR /&gt; &lt;BR /&gt;So, what you are seeing seems to be the expected behaviour. What happens if you set UNIX95?&lt;BR /&gt; &lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2004 04:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-does-not-show-effective-uid/m-p/3188725#M714082</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-02-11T04:52:51Z</dc:date>
    </item>
  </channel>
</rss>

