<?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: Logout users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967175#M416936</link>
    <description>then do a who -u and you will see the proccess ID associated with those users.&lt;BR /&gt;You can kill those PID if you are sure that this user is not logged in.</description>
    <pubDate>Tue, 14 Mar 2006 18:04:49 GMT</pubDate>
    <dc:creator>Rajeev  Shukla</dc:creator>
    <dc:date>2006-03-14T18:04:49Z</dc:date>
    <item>
      <title>Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967170#M416931</link>
      <description>This morning when I was going through my server I noticed that I had some users that had a session open from several days earlier.  I contacted them and they said that they were not logged in at the time.  I had them login and could see a new session started and then had them logout.  Their new session went away but the one that was opened last week was still there.  When I check the session it doesn’t show up as being used so I can’t kill it.&lt;BR /&gt;&lt;BR /&gt;How do I get rid of these sessions other than rebooting my server?&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 17:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967170#M416931</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T17:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967171#M416932</link>
      <description>Are these telnet sessions, Oracle sessions, ... ? What command are you using to display them? In many cases, the solution to your problem is killing the parent process (unless it is PPID 1). This could simply be a artifact of whatever utility you are using to display these "sessions" and no process(es) acxtually exist.</description>
      <pubDate>Tue, 14 Mar 2006 18:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967171#M416932</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-14T18:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967172#M416933</link>
      <description>Do you see those users in who -u listing?</description>
      <pubDate>Tue, 14 Mar 2006 18:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967172#M416933</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-03-14T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967173#M416934</link>
      <description>Sorry about the lack of information in the first page.  I see these users when I do a "who" at the root prompt.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967173#M416934</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967174#M416935</link>
      <description>Yes, I do see them when I do a "who -u"</description>
      <pubDate>Tue, 14 Mar 2006 18:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967174#M416935</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967175#M416936</link>
      <description>then do a who -u and you will see the proccess ID associated with those users.&lt;BR /&gt;You can kill those PID if you are sure that this user is not logged in.</description>
      <pubDate>Tue, 14 Mar 2006 18:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967175#M416936</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-03-14T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967176#M416937</link>
      <description>I tried that the first time around.  This is what I get:&lt;BR /&gt;&lt;BR /&gt;hellickd   pts/tN       Feb  1 15:07  old   15012  172.16.6.77&lt;BR /&gt;root: /home/root ==&amp;gt; kill 15012&lt;BR /&gt;kill: 15012: The specified process does not exist.&lt;BR /&gt;root: /home/root ==&amp;gt; who -u    &lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967176#M416937</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T18:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967177#M416938</link>
      <description>You could try killing the parent process if it is not 1 by grep ing..&lt;BR /&gt;ps -ef|grep 15012&lt;BR /&gt;this will list that user and the parent process..&lt;BR /&gt;Try killing that.&lt;BR /&gt;If you have lsof installed try seeing the files open by the process&lt;BR /&gt;&lt;BR /&gt;lsof -p 15012</description>
      <pubDate>Tue, 14 Mar 2006 18:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967177#M416938</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-03-14T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967178#M416939</link>
      <description>This is actually an artifact of a corrupt/inaccurate utmp (or wtmp) file and is often caused by users (especially PC users) not cleanly exiting. The processes no longer exist.&lt;BR /&gt;&lt;BR /&gt;One approach would be to use the fwtmp utility to clean up utmp by reading it out in ASCII format, removing the errant entries, and writing it back in binary format. Man fwtmp for details.&lt;BR /&gt;&lt;BR /&gt;A good trick is to send a kill -0 PID to a process. If ${?} is set to 0 then process still exists otherwise, it's bogus. &lt;BR /&gt;&lt;BR /&gt;I suspect that the real answer to this problem is to better educate your users on proper exit procedures.</description>
      <pubDate>Tue, 14 Mar 2006 18:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967178#M416939</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-14T18:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967179#M416940</link>
      <description>I dont have lsof so that isnt an option.  I did a man on fwtmp so i could read up on it.  My question is how do I use it?&lt;BR /&gt;&lt;BR /&gt;Is this correct?&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/acct/fwtmp -i wtmp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967179#M416940</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T18:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967180#M416941</link>
      <description>After some websurfing I found some information on how to use fwtmp.  This is what I did.&lt;BR /&gt;&lt;BR /&gt;root: / ==&amp;gt; /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; dummy.file&lt;BR /&gt;&lt;BR /&gt;I looked at the dummy.file but could not find anything that matched the date of the session that was having problems. &lt;BR /&gt;&lt;BR /&gt;Is there something that I am missing?</description>
      <pubDate>Tue, 14 Mar 2006 19:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967180#M416941</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-14T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967181#M416942</link>
      <description>For killing un-needed sessions then,&lt;BR /&gt;&lt;BR /&gt;# who -Hu&lt;BR /&gt;&lt;BR /&gt;will give username, pid, time and idle informations. With that you can kill the PID from root user.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 14 Mar 2006 23:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967181#M416942</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-14T23:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967182#M416943</link>
      <description>To get user login details then,&lt;BR /&gt;&lt;BR /&gt;# last -R&lt;BR /&gt;&lt;BR /&gt;will give it using /var/adm/wtmp file.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 14 Mar 2006 23:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967182#M416943</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-14T23:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967183#M416944</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;      Lets say, u are seeing the sessions of user1. As a root do the following procedure to make the kill those sessions.&lt;BR /&gt;&lt;BR /&gt; # who -u&lt;BR /&gt; # su - user1&lt;BR /&gt; $ kill -9 -1&lt;BR /&gt; # who -u&lt;BR /&gt;&lt;BR /&gt;Note: Doing this will kill even the active session of the user1. In that case, u need to ask the user1 to logout for a while and not launch any program. I do agree with Clay's point aswell, about educating your user community about clean logouts.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Wed, 15 Mar 2006 00:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967183#M416944</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-15T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967184#M416945</link>
      <description>&lt;BR /&gt;Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;# who -u&lt;BR /&gt;&lt;BR /&gt;will display username, pid, time and idle informations. &lt;BR /&gt;&lt;BR /&gt;get the pid of the MOST idle user.&lt;BR /&gt;&lt;BR /&gt;use&lt;BR /&gt;&lt;BR /&gt;#kill -9 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;this will clear the login.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.&lt;/PID&gt;</description>
      <pubDate>Wed, 15 Mar 2006 00:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967184#M416945</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-03-15T00:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967185#M416946</link>
      <description>Muthukumar,&lt;BR /&gt;&lt;BR /&gt;I tried the â  who â  Huâ   and received the following results:&lt;BR /&gt;&lt;BR /&gt;root: / ==&amp;gt; who -Hu&lt;BR /&gt;NAME       LINE         TIME          IDLE    PID  COMMENTS&lt;BR /&gt;hellickd   pts/tN       Feb  1 15:07  old   15012  172.16.6.77&lt;BR /&gt;root: / ==&amp;gt; kill 15012&lt;BR /&gt;kill: 15012: The specified process does not exist.&lt;BR /&gt;root: / ==&amp;gt; kill -9 15012&lt;BR /&gt;kill: 15012: The specified process does not exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then I tried the â  last â  Râ   command and received the following error:&lt;BR /&gt;&lt;BR /&gt;root: / ==&amp;gt; last -R&lt;BR /&gt;Memory fault(coredump)&lt;BR /&gt;root: / ==&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Senthil,&lt;BR /&gt;&lt;BR /&gt;To do the steps you gave me I will need to change the userâ  s password so I can login as them.  This is going to take some time and will let you know what happens.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sivakumar,&lt;BR /&gt;&lt;BR /&gt;I have been trying to kill a user that has been out there for over a month.  As you can see by the information in this section I can not kill the session because it doesnâ  t exist even though it does exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 15 Mar 2006 12:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967185#M416946</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-15T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967186#M416947</link>
      <description>When you have file /var/adm/wtmp too big or corrupted, is possible receive this error message for command "last -R".&lt;BR /&gt;&lt;BR /&gt;If you can:&lt;BR /&gt;&lt;BR /&gt;# cp /dev/null /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2006 12:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967186#M416947</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-03-15T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967187#M416948</link>
      <description>All of these who commands assume the utmp (wtmp,wtmptx) data are correct and they are not. You can't kill a process that doesn't exist and that is your fundamental problem. The solution is to cleanup the utmp files. I would read out the utmp files using fwtmp and then use awk or Perl to extract the PID's. Next send a kill -0 PID &lt;BR /&gt;&lt;BR /&gt;kill -0 ${THISPID}&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -ne 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;    this is a dead process; don't restore this line when you rewrite utmp&lt;BR /&gt;  else&lt;BR /&gt;    this is a good pid; restore this line when you rewrite utmp&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2006 12:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967187#M416948</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-15T12:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967188#M416949</link>
      <description>Hi Jeff,&lt;BR /&gt;Still looking?&lt;BR /&gt;What type of hpux 11.00 ? (PaRisc 1 or 2)&lt;BR /&gt;I remembered compiling a tool&lt;BR /&gt;If you are interested I will look for it&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 15 Mar 2006 12:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967188#M416949</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-03-15T12:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logout users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967189#M416950</link>
      <description>Compiled on a Kclass 11.00&lt;BR /&gt;&lt;BR /&gt;Looking for the source but unlucky for now&lt;BR /&gt;Give it a try - I dont know if it works (used to) because I cant recreate your situation to test, I hope it is what I think (because of its name... fixutmp)</description>
      <pubDate>Wed, 15 Mar 2006 13:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-users/m-p/4967189#M416950</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-03-15T13:23:50Z</dc:date>
    </item>
  </channel>
</rss>

