<?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: Which process restart last/lastb ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301049#M183863</link>
    <description>When I ran 'last' command, following error occurred. So I thought there was any process related with this command.&lt;BR /&gt;If there was not process related with 'last' command, how can I fix this problem?&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;[/home/kernelia] last&lt;BR /&gt;Memory fault(coredump)</description>
    <pubDate>Thu, 10 Jun 2004 02:04:18 GMT</pubDate>
    <dc:creator>Dong-Hwan Cha</dc:creator>
    <dc:date>2004-06-10T02:04:18Z</dc:date>
    <item>
      <title>Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301044#M183858</link>
      <description>Hi All,&lt;BR /&gt;I want to restart process which concern about last &amp;amp; lastb. But I don't know which process is concerned. If anybody know this, please let me know. In addition, explain the restart procedure.&lt;BR /&gt;&lt;BR /&gt;Have a nice day!&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jun 2004 01:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301044#M183858</guid>
      <dc:creator>Dong-Hwan Cha</dc:creator>
      <dc:date>2004-06-10T01:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301045#M183859</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;last, lastb - indicate last logins of users and ttys and are stored in the /var/adm/wtmp /var/adm/btmp files. If you would like to recreate them, they will have to be truncated.&lt;BR /&gt;&lt;BR /&gt;# cp /dev/null /var/adm/wtmp &lt;BR /&gt;# cp /dev/null /var/adm/btmp&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jun 2004 01:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301045#M183859</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-10T01:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301046#M183860</link>
      <description>Thanks for your reply.&lt;BR /&gt;But I want to know more than you said.&lt;BR /&gt;I want to stop &amp;amp; start process which concern about last &amp;amp; lastb, not trucate file.&lt;BR /&gt;Is there any process which assosiated with last/lastb?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 10 Jun 2004 01:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301046#M183860</guid>
      <dc:creator>Dong-Hwan Cha</dc:creator>
      <dc:date>2004-06-10T01:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301047#M183861</link>
      <description>There is no active daemon process as such that has these files in memory all the time. These are used when a user attempts logins whether good or bad.&lt;BR /&gt;The login process does all of this. Have a look at the login (1) man page.&lt;BR /&gt;&lt;BR /&gt;One further item, make sure that you have PHNE_24829 loaded and follow the special intructions. It actually assists with not having wtmp/utmp files getting corrupted.</description>
      <pubDate>Thu, 10 Jun 2004 01:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301047#M183861</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-06-10T01:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301048#M183862</link>
      <description>More info.&lt;BR /&gt;&lt;BR /&gt;inetd is the process which controlles the login. This process is configured in the /etc/inetd.conf.&lt;BR /&gt;&lt;BR /&gt;/var/adm/btmp&lt;BR /&gt;=============&lt;BR /&gt;If /var/adm/btmp exists, the login process updates it automatically whenever a bad login attempt occurs. To create this file, issue the command:&lt;BR /&gt;&lt;BR /&gt;touch /var/adm/btmp&lt;BR /&gt;&lt;BR /&gt;Note, you must be root to write to the /var directory.&lt;BR /&gt;&lt;BR /&gt;Read the /var/adm/btmp file using the lastb command, to determine whether unauthorized users are attempting to login (see last(1) in the HP-UX Reference).&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;NOTE:&lt;BR /&gt;For security purposes, be sure /var/adm/btmp is not readable by users.&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;/var/adm/wtmp&lt;BR /&gt;=============&lt;BR /&gt;&lt;BR /&gt;The login process automatically updates /var/adm/wtmp whenever a user&lt;BR /&gt;successfully logs in. Read this file using the last command (see last(1) in the HP-UX Reference).&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 10 Jun 2004 01:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301048#M183862</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-10T01:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301049#M183863</link>
      <description>When I ran 'last' command, following error occurred. So I thought there was any process related with this command.&lt;BR /&gt;If there was not process related with 'last' command, how can I fix this problem?&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;[/home/kernelia] last&lt;BR /&gt;Memory fault(coredump)</description>
      <pubDate>Thu, 10 Jun 2004 02:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301049#M183863</guid>
      <dc:creator>Dong-Hwan Cha</dc:creator>
      <dc:date>2004-06-10T02:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which process restart last/lastb ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301050#M183864</link>
      <description>Typically, the last command will fail because either the /var/adm/btmp or /var/adm/wtmp file is corrupted. The following procedure will determine if&lt;BR /&gt;this is the cause and also determine which file is corrupted.&lt;BR /&gt;&lt;BR /&gt;1. Make backup copies of the /var/adm/btmp and /var/adm/wtmp files.&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;&lt;BR /&gt;2. Clear out the btmp and wtmp files.&lt;BR /&gt;# &amp;gt; /var/adm/btmp&lt;BR /&gt;# &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;3. Try the last command to see if it still gives the errors.&lt;BR /&gt;# /usr/bin/last&lt;BR /&gt;&lt;BR /&gt;4. If the command ran without a memory fault, then this indicates that the btmp&lt;BR /&gt;or wtmp was corrupt.&lt;BR /&gt;&lt;BR /&gt;5. Copy the /var/adm/btmp.old to /var/adm/btmp.&lt;BR /&gt;# cp /var/adm/btmp.old /var/adm/btmp.&lt;BR /&gt;&lt;BR /&gt;6. Run the last command again. If the command runs successfully, this indicates that the wtmp was corrupt. If it fails, this would indicate that the btmp file was corrupt.&lt;BR /&gt;&lt;BR /&gt;7. Repeat steps 5 and 6 using the wtmp file. To test it for integrity.&lt;BR /&gt;&lt;BR /&gt;8. Whichever file was corrupt and causing the problem should be cleard out as was done in step 2.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 10 Jun 2004 02:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-restart-last-lastb/m-p/3301050#M183864</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-10T02:10:31Z</dc:date>
    </item>
  </channel>
</rss>

