<?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 lost user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584043#M32147</link>
    <description>I have a user-id that I cannot find by using &lt;BR /&gt;"ps -fu login" or "ps -ef|grep login".  However, in my user start-up script there is a command "who | grep -v "`who am i`" | grep $LOGNAME " that is finding the user.  I did a "who -u|grep login" which gives me the process ID, but when I try to kill it, it doesn't find anything to kill.</description>
    <pubDate>Mon, 24 Sep 2001 17:32:48 GMT</pubDate>
    <dc:creator>Jeff Hagstrom</dc:creator>
    <dc:date>2001-09-24T17:32:48Z</dc:date>
    <item>
      <title>lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584043#M32147</link>
      <description>I have a user-id that I cannot find by using &lt;BR /&gt;"ps -fu login" or "ps -ef|grep login".  However, in my user start-up script there is a command "who | grep -v "`who am i`" | grep $LOGNAME " that is finding the user.  I did a "who -u|grep login" which gives me the process ID, but when I try to kill it, it doesn't find anything to kill.</description>
      <pubDate>Mon, 24 Sep 2001 17:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584043#M32147</guid>
      <dc:creator>Jeff Hagstrom</dc:creator>
      <dc:date>2001-09-24T17:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584044#M32148</link>
      <description>Could this user be one that's used to run some application/script at startup, i.e. using su - $USER -c &lt;COMMAND&gt;?  Check /var/adm/sulog and also check the last -R $USER command to see where the user logged in from.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/COMMAND&gt;</description>
      <pubDate>Mon, 24 Sep 2001 17:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584044#M32148</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-24T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584045#M32149</link>
      <description>Also, why are you ps -fu and grepping for login?  The login process is a tempory one which exec the users' shell, so it never stays around for very long.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 24 Sep 2001 17:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584045#M32149</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-24T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584046#M32150</link>
      <description>what does &lt;BR /&gt;#who -l&lt;BR /&gt;or &lt;BR /&gt;#who -u &lt;BR /&gt;give you?&lt;BR /&gt;who if you &lt;BR /&gt;#who a &lt;BR /&gt;you will get a doesn't exist or isn't readable&lt;BR /&gt;Usage:  who [-rbtpludAasHTqRm] [am i] [utmp_like_file]&lt;BR /&gt;&lt;BR /&gt;r       run level&lt;BR /&gt;b       boot time&lt;BR /&gt;t       time changes&lt;BR /&gt;p       processes other than getty or users&lt;BR /&gt;l       login processes&lt;BR /&gt;u       useful information&lt;BR /&gt;d       dead processes&lt;BR /&gt;A       accounting information&lt;BR /&gt;a       all (rbtpludA options)&lt;BR /&gt;s       short form of who (no time since last output or pid)&lt;BR /&gt;H       print header&lt;BR /&gt;T       status of tty (+ writable, - not writable, x exclusive open, ? hung)&lt;BR /&gt;q       quick who&lt;BR /&gt;R       print host name&lt;BR /&gt;&lt;BR /&gt;Here you get all the options for who. &lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 24 Sep 2001 17:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584046#M32150</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-24T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584047#M32151</link>
      <description>Hi Jeff:&lt;BR /&gt;&lt;BR /&gt;From the syntax you present, I suspect that you have 'su'ed to another user and as that user are seeking to kill the process that existed before the 'su'.  If you are not 'root' then you can't kill another user's process (task).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 24 Sep 2001 17:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584047#M32151</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-24T17:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584048#M32152</link>
      <description>Santosh, I think he is just doing that within the user login process. (user's .profile maybe)&lt;BR /&gt;&lt;BR /&gt;It does seem like the user was just briefly logged in.  I'd also take a look at:&lt;BR /&gt;last -R | grep login_name   &lt;BR /&gt;This will tell you how long the user was on the system, when, and also what IP they came from.  If it was a script of some kind like Santosh said, it probably won't have an IP associated with it.</description>
      <pubDate>Mon, 24 Sep 2001 17:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584048#M32152</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-09-24T17:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584049#M32153</link>
      <description>Hi Jeff,&lt;BR /&gt;"who" gets its information from /etc/utmp and /var/adm/wtmp. Sometimes when user logs out by unusual way and utmp still has that entry then you can't kill that PID because that PID is not exits but entry is still there in /etc/utmp. &lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 24 Sep 2001 17:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584049#M32153</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-09-24T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: lost user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584050#M32154</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;I presume when you say "grep login" you are actually grepping for the loginid (name).&lt;BR /&gt;&lt;BR /&gt;Could this loginid have the same uid as another loginid that comes before it in the passwd file?  "ps", "whoami", and "id" are going to show the first loginid found in /etc/passwd that matches the numeric uid.  $LOGNAME and "who am i" will show the actual loginid used.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 24 Sep 2001 20:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-user/m-p/2584050#M32154</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-09-24T20:52:12Z</dc:date>
    </item>
  </channel>
</rss>

