<?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: Core Dump - last command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809260#M939870</link>
    <description>you can do a &lt;BR /&gt;cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Before you do this copy the original file to wtmp.old&lt;BR /&gt;&lt;BR /&gt;You can extract the contents by&lt;BR /&gt;#/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmpfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 19 Sep 2002 04:49:10 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2002-09-19T04:49:10Z</dc:date>
    <item>
      <title>Core Dump - last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809258#M939868</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;On HP-UX 11, last command is giving core dump. wtmp file exists under /var/adm directory. There is no problem regarding access permission of wtmp file and last was executed as root. I can also issue file command to check the type of wtmp file. It shows - data.&lt;BR /&gt;&lt;BR /&gt;Any idea what could go wrong?&lt;BR /&gt;&lt;BR /&gt;I can issue lastb command to get the login history from btmp file.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Soumen Ghosh</description>
      <pubDate>Thu, 19 Sep 2002 04:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809258#M939868</guid>
      <dc:creator>Soumen Ghosh_1</dc:creator>
      <dc:date>2002-09-19T04:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Core Dump - last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809259#M939869</link>
      <description>check this hp doc&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;admit=-682735245+1032414807216+28353475&amp;amp;docId=200000058668889" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;admit=-682735245+1032414807216+28353475&amp;amp;docId=200000058668889&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 19 Sep 2002 04:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809259#M939869</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-09-19T04:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Core Dump - last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809260#M939870</link>
      <description>you can do a &lt;BR /&gt;cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Before you do this copy the original file to wtmp.old&lt;BR /&gt;&lt;BR /&gt;You can extract the contents by&lt;BR /&gt;#/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmpfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 19 Sep 2002 04:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809260#M939870</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-09-19T04:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Core Dump - last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809261#M939871</link>
      <description>Hi, &lt;BR /&gt;The file /var/adm/btmp contains bad login entries for each invalid logon &lt;BR /&gt;attempt and the file /var/adm/wtmp contains a record of all logins and &lt;BR /&gt;logouts. See the man page utmp(4) for more information. &lt;BR /&gt;&lt;BR /&gt;They are binary data files, so they cannot be read directly. The can however &lt;BR /&gt;be read with the following commands: &lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/btmp &lt;BR /&gt;&lt;BR /&gt;The "last" and "lastb" commands display the information is a readable format. &lt;BR /&gt;&lt;BR /&gt;The files can be zeroed or removed but if they are removed they need to be &lt;BR /&gt;manually recreated as they not created by the programs that maintain them. &lt;BR /&gt;Thus, if these files are removed, record-keeping is turned off. &lt;BR /&gt;&lt;BR /&gt;If you want to recreate them note the ownerships and permissions before &lt;BR /&gt;removing them and reset the ownerships and permissions after recreating the &lt;BR /&gt;files (usually with touch to create an empty files). This is EXTREMELY &lt;BR /&gt;important -&amp;gt; especially for the btmp file. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In your case i think wtmp file is corrupted .pls recreate it.</description>
      <pubDate>Thu, 19 Sep 2002 04:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809261#M939871</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-09-19T04:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Core Dump - last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809262#M939872</link>
      <description>Hi ghosh&lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp file may be corrupted, &lt;BR /&gt;#cd /var/adm&lt;BR /&gt;#cp wtmp wtmp.old&lt;BR /&gt;# rm wtmp&lt;BR /&gt;#touch wtmp&lt;BR /&gt;#mv wtmp.old wtmp&lt;BR /&gt;#chmod 0644 wtmp&lt;BR /&gt;#last&lt;BR /&gt;should work now.</description>
      <pubDate>Thu, 19 Sep 2002 05:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-last-command/m-p/2809262#M939872</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-09-19T05:21:53Z</dc:date>
    </item>
  </channel>
</rss>

