<?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: &amp;quot;last&amp;quot; command dumps core - HP-UX 11.00 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597527#M33585</link>
    <description>Hi Harry,&lt;BR /&gt;&lt;BR /&gt;I have both files:&lt;BR /&gt;&lt;BR /&gt;# ls -altr /var/adm/btmp&lt;BR /&gt;-rw-------   1 root       other         4500 Oct 18 13:12 /var/adm/btmp&lt;BR /&gt;# ls -altr /var/adm/wtmp&lt;BR /&gt;-rw-rw-r--   1 adm        adm         161336 Oct 18 13:59 /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;How do I tell which is corrupted?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;/ Brian&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Oct 2001 17:25:27 GMT</pubDate>
    <dc:creator>Brian Williams_5</dc:creator>
    <dc:date>2001-10-18T17:25:27Z</dc:date>
    <item>
      <title>"last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597524#M33582</link>
      <description>How do I fix this problem?!&lt;BR /&gt;&lt;BR /&gt;# whoami&lt;BR /&gt;root&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX pokie B.11.00 U 9000/800 1514750538 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;# last&lt;BR /&gt;Memory fault(coredump)&lt;BR /&gt;&lt;BR /&gt;# file core&lt;BR /&gt;core:           core file from 'last' - received SIGSEGV&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2001 17:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597524#M33582</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-18T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597525#M33583</link>
      <description>If it used to work, and now it is failing then either your btmp or wtmp file is corrupt.</description>
      <pubDate>Thu, 18 Oct 2001 17:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597525#M33583</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-18T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597526#M33584</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;This should fix your problem:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Oct 2001 17:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597526#M33584</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-18T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597527#M33585</link>
      <description>Hi Harry,&lt;BR /&gt;&lt;BR /&gt;I have both files:&lt;BR /&gt;&lt;BR /&gt;# ls -altr /var/adm/btmp&lt;BR /&gt;-rw-------   1 root       other         4500 Oct 18 13:12 /var/adm/btmp&lt;BR /&gt;# ls -altr /var/adm/wtmp&lt;BR /&gt;-rw-rw-r--   1 adm        adm         161336 Oct 18 13:59 /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;How do I tell which is corrupted?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;/ Brian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2001 17:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597527#M33585</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-18T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597528#M33586</link>
      <description>Hi Brian,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;last command gets its information from wtmp file where as lastb gets it from btmp.&lt;BR /&gt;&lt;BR /&gt;In your case looks like wtmp is corrupted.&lt;BR /&gt;&lt;BR /&gt;you could try "cat /dev/null &amp;gt;  /var/adm/wtmp"&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Thu, 18 Oct 2001 17:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597528#M33586</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-10-18T17:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597529#M33587</link>
      <description>Yes, "last" was working before and then mysteriously stopped.  I *think* it was after I used sam to change some kernel parameters (maxdsiz, etc.) that it stopped working.&lt;BR /&gt;&lt;BR /&gt;But the "cat /dev/null &amp;gt; /var/adm/wtmp" command fixed this problem.  Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2001 17:37:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597529#M33587</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-18T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597530#M33588</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;One more trick.  If you ever need/want to preserve your 'wtmp' and/or 'btmp' file, but it is corrupted, or you simply want to trim it, then you can "edit" it like this:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp &lt;BR /&gt;&lt;BR /&gt;At this point, you may edit the /tmp/wtmp file, since it is a ASCII file. &lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Oct 2001 17:51:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597530#M33588</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-18T17:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: "last" command dumps core - HP-UX 11.00</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597531#M33589</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;  You can use /usr/sbin/acct/wtmpfix command&lt;BR /&gt;to try fixing the corrupt&lt;BR /&gt;wtmp file.  If it doesn't&lt;BR /&gt;work you can preserve&lt;BR /&gt;the ascii version of the file&lt;BR /&gt;by running  fwtmp  .&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Thu, 18 Oct 2001 20:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-last-quot-command-dumps-core-hp-ux-11-00/m-p/2597531#M33589</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-18T20:03:41Z</dc:date>
    </item>
  </channel>
</rss>

