<?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 &amp;quot;dead&amp;quot; sessions in who's output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448537#M10173</link>
    <description>Our users use Reflection/X to connect to our HP-UX servers. I presume that from time to time, their PC's crash or are turned off without exiting normally from Reflection. In such cases their sessions become hung. I think that HP-UX has no default time-out mechanism to kill such interactive sessions. Most of the times I have to kill (with -9) the processes listed in "who -u" output. Even in this case (that is, when the processes are killed) the "who -u" output still displays these sessions.&lt;BR /&gt;&lt;BR /&gt;For example, presently I know that there is no "itadmin" user in the system (I checked this with the "ps -fu itadmin" command, which displays nothing), but the "who -u" command displays something like:&lt;BR /&gt;&lt;BR /&gt;# who -u | grep itadmin&lt;BR /&gt;itadmin    pts/1        Sep 26 22:21  old   22904  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/8        Sep 26 14:21 14:22  19565  haktur:0.0&lt;BR /&gt;itadmin    pts/13       Sep 28 09:22  1:07  13301  seyalt&lt;BR /&gt;itadmin    pts/14       Sep 28 09:22  1:07  13304  seyalt&lt;BR /&gt;itadmin    pts/15       Sep 28 09:22  1:07  13303  seyalt&lt;BR /&gt;itadmin    pts/29       Sep 25 15:24  old   18229  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/30       Sep 25 15:24  old   18231  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/32       Sep 25 15:24  1:10  18232  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/35       Sep 25 15:24  old   18234  10.16.67.183:0.0&lt;BR /&gt;&lt;BR /&gt;I know that this has to do with the wtmp file which is not updated correctly by the system. What can be the solution to this problem?</description>
    <pubDate>Thu, 28 Sep 2000 06:35:10 GMT</pubDate>
    <dc:creator>Fedon Kadifeli</dc:creator>
    <dc:date>2000-09-28T06:35:10Z</dc:date>
    <item>
      <title>"dead" sessions in who's output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448537#M10173</link>
      <description>Our users use Reflection/X to connect to our HP-UX servers. I presume that from time to time, their PC's crash or are turned off without exiting normally from Reflection. In such cases their sessions become hung. I think that HP-UX has no default time-out mechanism to kill such interactive sessions. Most of the times I have to kill (with -9) the processes listed in "who -u" output. Even in this case (that is, when the processes are killed) the "who -u" output still displays these sessions.&lt;BR /&gt;&lt;BR /&gt;For example, presently I know that there is no "itadmin" user in the system (I checked this with the "ps -fu itadmin" command, which displays nothing), but the "who -u" command displays something like:&lt;BR /&gt;&lt;BR /&gt;# who -u | grep itadmin&lt;BR /&gt;itadmin    pts/1        Sep 26 22:21  old   22904  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/8        Sep 26 14:21 14:22  19565  haktur:0.0&lt;BR /&gt;itadmin    pts/13       Sep 28 09:22  1:07  13301  seyalt&lt;BR /&gt;itadmin    pts/14       Sep 28 09:22  1:07  13304  seyalt&lt;BR /&gt;itadmin    pts/15       Sep 28 09:22  1:07  13303  seyalt&lt;BR /&gt;itadmin    pts/29       Sep 25 15:24  old   18229  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/30       Sep 25 15:24  old   18231  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/32       Sep 25 15:24  1:10  18232  10.16.67.183:0.0&lt;BR /&gt;itadmin    pts/35       Sep 25 15:24  old   18234  10.16.67.183:0.0&lt;BR /&gt;&lt;BR /&gt;I know that this has to do with the wtmp file which is not updated correctly by the system. What can be the solution to this problem?</description>
      <pubDate>Thu, 28 Sep 2000 06:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448537#M10173</guid>
      <dc:creator>Fedon Kadifeli</dc:creator>
      <dc:date>2000-09-28T06:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: "dead" sessions in who's output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448538#M10174</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i had the same problem.&lt;BR /&gt;So i wrote a little c program (i called it utmpfix) that fixes the /etc/utmp file.&lt;BR /&gt;Put you at attachment.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 28 Sep 2000 06:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448538#M10174</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-28T06:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: "dead" sessions in who's output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448539#M10175</link>
      <description>Hi Fedon,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;who gets its information from the /etc/utmp file. The file is&lt;BR /&gt;usually cleaned when a user logs out but in this case it became corrupt.&lt;BR /&gt;&lt;BR /&gt;Follow these steps to remove the non existent sessions from the file :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  1.check the last modification time of the /etc/utmp file&lt;BR /&gt;&lt;BR /&gt;    ls -l /etc/utmp&lt;BR /&gt;&lt;BR /&gt;    -rw-r--r--   1 root       root          1620 Jun 28 09:22 /etc/utmp&lt;BR /&gt;&lt;BR /&gt;  2.convert the binary /etc/utmp file to ascii :&lt;BR /&gt;&lt;BR /&gt;    /usr/sbin/acct/fwtmp /tmp/utmp.ascii&lt;BR /&gt;&lt;BR /&gt;  3.edit the /tmp/utmp.ascii file to remove the old entries&lt;BR /&gt;&lt;BR /&gt;    Note : the entries are sorted by date, simply use the login time reported by&lt;BR /&gt;    who(1) to find the lines to remove.&lt;BR /&gt;&lt;BR /&gt;  4.convert the file back to binary format :&lt;BR /&gt;&lt;BR /&gt;    /usr/sbin/acct/fwtmp -ic /tmp/utmp.binary&lt;BR /&gt;&lt;BR /&gt;  5.verify that all unwanted entries have been removed from the new file :&lt;BR /&gt;&lt;BR /&gt;    who /tmp/utmp.binary&lt;BR /&gt;&lt;BR /&gt;  6.verify that the /etc/utmp file has not been modified since the&lt;BR /&gt;    beginning of this procedure :&lt;BR /&gt;&lt;BR /&gt;    ls -l /etc/utmp&lt;BR /&gt;&lt;BR /&gt;    -rw-r--r--   1 root       root          1620 Jun 28 09:22 /etc/utmp&lt;BR /&gt;&lt;BR /&gt;    If the file has been updated do all the steps again.&lt;BR /&gt;&lt;BR /&gt;  7.replace the existing /etc/utmp file with the new one :&lt;BR /&gt;&lt;BR /&gt;    mv /tmp/utmp.binary /etc/utmp&lt;BR /&gt;&lt;BR /&gt;  8.verify that the file still has the same ownership and permissions :&lt;BR /&gt;&lt;BR /&gt;    ls -l /etc/utmp&lt;BR /&gt;&lt;BR /&gt;    -rw-r--r--   1 root       root          1600 Jun 28 09:30 /etc/utmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The who(1) command will now report the correct information.</description>
      <pubDate>Thu, 28 Sep 2000 07:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-dead-quot-sessions-in-who-s-output/m-p/2448539#M10175</guid>
      <dc:creator>Marcel Eken_2</dc:creator>
      <dc:date>2000-09-28T07:04:00Z</dc:date>
    </item>
  </channel>
</rss>

