<?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: last login cmd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864065#M397234</link>
    <description>Thanks Sundar and Bill.</description>
    <pubDate>Tue, 05 Oct 2004 20:16:42 GMT</pubDate>
    <dc:creator>Peter Gillis</dc:creator>
    <dc:date>2004-10-05T20:16:42Z</dc:date>
    <item>
      <title>last login cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864062#M397231</link>
      <description>HI, ux11.11 v1.&lt;BR /&gt;I have noticed when I issued the cmd `last -5 -R $LOGNAME` the user was listed as still logged in on pts/tL; but If I do `ps -ef|grep pts/tL`, then that tty is now listed as being used another user.  Can some one explain why this is happening.  Why is the last command still showing the original user as logged in on that particular device.  This is still the situation if I kill the process for that device with the original user.?  &lt;BR /&gt;Thanks in advance for explanations&lt;BR /&gt;Maria</description>
      <pubDate>Tue, 05 Oct 2004 18:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864062#M397231</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2004-10-05T18:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: last login cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864063#M397232</link>
      <description>&lt;BR /&gt;I think you got to live with it Maria. :-)&lt;BR /&gt;&lt;BR /&gt;It happens when the /var/adm/wtmp file is not properly updated. It happens for various reasons.&lt;BR /&gt;&lt;BR /&gt;But,if you would still like to make those "cosmetic" changes to the last output, then you can manually edit and modify the entries&lt;BR /&gt;&lt;BR /&gt;wtmp is a binary file. So you need to use /usr/sbin/acct/fwtmp to make changes.&lt;BR /&gt;&lt;BR /&gt;1) use fwtmp command to create the ascii version of wtmp file.&lt;BR /&gt;2) Edit the ascii file and make changes&lt;BR /&gt;3) Convert the ascii file back to the wtmp format using fwtmp command.&lt;BR /&gt;&lt;BR /&gt;- Sundar&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2004 18:55:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864063#M397232</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-10-05T18:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: last login cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864064#M397233</link>
      <description>last depends on a sane list of actions in wtmp. The problem is that users don't always do nice things with their computers (well, sometimes their non-Unix computers decide to reboot) leaving orphaned connections). There are also some programming errors that can leave wtmp with missing stop records. last does not look at ps, it looks at wtmp and matches login/logout records.</description>
      <pubDate>Tue, 05 Oct 2004 19:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864064#M397233</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-10-05T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: last login cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864065#M397234</link>
      <description>Thanks Sundar and Bill.</description>
      <pubDate>Tue, 05 Oct 2004 20:16:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-login-cmd/m-p/4864065#M397234</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2004-10-05T20:16:42Z</dc:date>
    </item>
  </channel>
</rss>

