<?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 command error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741176#M67690</link>
    <description>When I had corruption in the wtmp file the corruption was always indicated by 1970 date stamps and I had to use /usr/lib/acct/wtmpfix &amp;lt; /etc/wtmp &amp;gt; wtmpfix.new to fix the time stamps  - see man page for wtmpfix</description>
    <pubDate>Mon, 10 Jun 2002 15:17:44 GMT</pubDate>
    <dc:creator>Nick Wickens</dc:creator>
    <dc:date>2002-06-10T15:17:44Z</dc:date>
    <item>
      <title>last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741170#M67684</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;iam getting the following error when i issue the last command. but lastb working fine. wtmp file exists in /var/adm. what could be the reason. it is hp-ux 11.0 system.&lt;BR /&gt;&lt;BR /&gt;Memory fault(corddump)&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;ravi</description>
      <pubDate>Mon, 10 Jun 2002 13:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741170#M67684</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-06-10T13:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741171#M67685</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt; Suspect the wtmp file is corrupt.&lt;BR /&gt;last checks it whereas lastb checks the btmp file.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 14:02:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741171#M67685</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-06-10T14:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741172#M67686</link>
      <description>&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;  Please check up the permission and owner of /var/adm/wtmp file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  It should be 664 adm  adm. If still problem follow this&lt;BR /&gt;&lt;BR /&gt;#cd /var/adm&lt;BR /&gt;#cp wtmp wtmp.org&lt;BR /&gt;#&amp;gt;wtmp&lt;BR /&gt;#last&lt;BR /&gt;&lt;BR /&gt;   Now U see whether it is giving any error or not.. If still problem , then something wrong with /usr/bin/last command.&lt;BR /&gt;&lt;BR /&gt; Best of luck&lt;BR /&gt;Shahul</description>
      <pubDate>Mon, 10 Jun 2002 14:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741172#M67686</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2002-06-10T14:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741173#M67687</link>
      <description>The "last" command query /var/adm/wtmp while "lastb" query /var/adm/btmp. So if you're getting core dump on "last", most probably /var/adm/wtmp is corrupted.&lt;BR /&gt;&lt;BR /&gt;Do this ..&lt;BR /&gt;# cd /var/adm&lt;BR /&gt;# mv wtmp wtmp.old&lt;BR /&gt;# touch wtmp&lt;BR /&gt;==&amp;gt; retain the same permission/ownership as wtmp.old&lt;BR /&gt;# last&lt;BR /&gt;&lt;BR /&gt;If it's ok, then it's confirmed "wtmp" is corrupted.</description>
      <pubDate>Mon, 10 Jun 2002 14:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741173#M67687</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-10T14:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741174#M67688</link>
      <description>Hi Ravi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The wtmp file is corrupt , please recreate it using :&lt;BR /&gt;&lt;BR /&gt;to read wtmp file, that now seems to be corrupted ,do like this: &lt;BR /&gt;&lt;BR /&gt;the following will convert it to ASCII file &lt;BR /&gt;#/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/file &lt;BR /&gt;then you can either edit the file or read it. &lt;BR /&gt;&lt;BR /&gt;Then you can convert it back to binary form: &lt;BR /&gt;##/usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/file &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 10 Jun 2002 14:06:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741174#M67688</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-10T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741175#M67689</link>
      <description>thank u all&lt;BR /&gt;regds&lt;BR /&gt;ravi</description>
      <pubDate>Mon, 10 Jun 2002 14:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741175#M67689</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-06-10T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741176#M67690</link>
      <description>When I had corruption in the wtmp file the corruption was always indicated by 1970 date stamps and I had to use /usr/lib/acct/wtmpfix &amp;lt; /etc/wtmp &amp;gt; wtmpfix.new to fix the time stamps  - see man page for wtmpfix</description>
      <pubDate>Mon, 10 Jun 2002 15:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741176#M67690</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-06-10T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: last command error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741177#M67691</link>
      <description>A better explanation from here (TKB #KBRC00001970):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058668889" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058668889&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 15:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-error/m-p/2741177#M67691</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-10T15:57:10Z</dc:date>
    </item>
  </channel>
</rss>

