<?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 wtmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605657#M853380</link>
    <description>hi all,&lt;BR /&gt;&lt;BR /&gt;i am trying to get some login info from the last command but it keeps core dumping. i tried&lt;BR /&gt;strings, who and more, but i dont get the info that last gives me. is there any way to rectify a bad wtmp file?&lt;BR /&gt;&lt;BR /&gt;thx in advance &lt;BR /&gt;</description>
    <pubDate>Thu, 01 Nov 2001 14:57:13 GMT</pubDate>
    <dc:creator>David Bellamy</dc:creator>
    <dc:date>2001-11-01T14:57:13Z</dc:date>
    <item>
      <title>wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605657#M853380</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;i am trying to get some login info from the last command but it keeps core dumping. i tried&lt;BR /&gt;strings, who and more, but i dont get the info that last gives me. is there any way to rectify a bad wtmp file?&lt;BR /&gt;&lt;BR /&gt;thx in advance &lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2001 14:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605657#M853380</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2001-11-01T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605658#M853381</link>
      <description>If its truly bad, simply cp /dev/null /etc/wtmp</description>
      <pubDate>Thu, 01 Nov 2001 15:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605658#M853381</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-11-01T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605659#M853382</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;The fwtmp command will dump out wtmp data in ascii format.  Does this product corrupt data too?&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Thu, 01 Nov 2001 15:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605659#M853382</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-11-01T15:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605660#M853383</link>
      <description>Most likely the wtmp and btmp files are corrupted. Do this to check ..&lt;BR /&gt;&lt;BR /&gt;# cp /var/adm/btmp /var/adm/btmp.old&lt;BR /&gt;# cp /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;# &amp;gt; /var/adm/btmp&lt;BR /&gt;# &amp;gt; /var/adm/wtmp&lt;BR /&gt;# last&lt;BR /&gt;==&amp;gt; see if it still gives error. if it does it means those files are corrupted. continue ..&lt;BR /&gt;&lt;BR /&gt;# cp /var/adm/btmp.old /var/adm/btmp&lt;BR /&gt;&lt;BR /&gt;# last&lt;BR /&gt;==&amp;gt; if it runs ok it means wtmp is corrupted. if it fails it means btmp is corrupted.&lt;BR /&gt;&lt;BR /&gt;Repeat the last 2 steps above for wtmp file.&lt;BR /&gt;&lt;BR /&gt;After the above test clear the file that has problem... (eg: if wtmp is bad) ..&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2001 15:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605660#M853383</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2001-11-01T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605661#M853384</link>
      <description>Hi David:&lt;BR /&gt;&lt;BR /&gt;If you want to start fresh, null the file:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;If, on the otherhand, you want to try to correct or eliminate bad data and keep some portion of the file, do 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, 01 Nov 2001 15:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2605661#M853384</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-01T15:14:28Z</dc:date>
    </item>
  </channel>
</rss>

