<?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: lastb log is not correct in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205450#M10318</link>
    <description>thx reply, the last is OK , but it only keep one day information , how to set it can keep longer log ? thx.</description>
    <pubDate>Mon, 01 Mar 2004 06:58:59 GMT</pubDate>
    <dc:creator>peterchu</dc:creator>
    <dc:date>2004-03-01T06:58:59Z</dc:date>
    <item>
      <title>lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205445#M10313</link>
      <description>I use the command lastb to check the user login history , however , i found that there are problems , eg . &lt;BR /&gt;1. the user has access the system for 3 hours , but the lastb log show the login time is &lt;BR /&gt;" Mon Feb 23 09:33 - 09:33  (00:00) " ;&lt;BR /&gt;&lt;BR /&gt;2.the user have login for many times , but the log only show part of the login history , &lt;BR /&gt;&lt;BR /&gt;could suggest how to fix it ? thx</description>
      <pubDate>Mon, 01 Mar 2004 05:04:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205445#M10313</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-03-01T05:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205446#M10314</link>
      <description>The last command gets it's information from /var/log/wtmp.  This file, on some distributions gets "rotated" everynow and then.  This means that any information is lost unless you point "last" at the old log with the "-f" information.  &lt;BR /&gt; &lt;BR /&gt;"lastb" uses /var/log/btmp and only shows bad logins, not the duration of the login.</description>
      <pubDate>Mon, 01 Mar 2004 05:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205446#M10314</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-01T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205447#M10315</link>
      <description>thx reply , if lastb is not shown the duration of the user login , what command / method can show this informatoin ? thx.</description>
      <pubDate>Mon, 01 Mar 2004 05:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205447#M10315</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-03-01T05:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205448#M10316</link>
      <description>try the ac utility wich is a part of psacct&lt;BR /&gt;rpm.</description>
      <pubDate>Mon, 01 Mar 2004 06:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205448#M10316</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-03-01T06:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205449#M10317</link>
      <description>Well, also, "last" will.</description>
      <pubDate>Mon, 01 Mar 2004 06:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205449#M10317</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-01T06:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205450#M10318</link>
      <description>thx reply, the last is OK , but it only keep one day information , how to set it can keep longer log ? thx.</description>
      <pubDate>Mon, 01 Mar 2004 06:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205450#M10318</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-03-01T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205451#M10319</link>
      <description>You should find out what it is that is "rotating" the wtmp log file.  I imagine it's cron.  If you do a "crontab -l" as root, you might find it and change it to run every few months or not at all.  I think Red Hat does soem annoying cron stuff to stop you seeing what it does every day and every hour though.&lt;BR /&gt; &lt;BR /&gt;Try looking at /etc/cron/cron.daily if this is the case for you.</description>
      <pubDate>Mon, 01 Mar 2004 07:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205451#M10319</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-01T07:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: lastb log is not correct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205452#M10320</link>
      <description>Also at least on my system the "old" logfiles are stored as &lt;BR /&gt;/var/log/wtmp-&lt;DATE&gt;.gz.&lt;BR /&gt;&lt;BR /&gt;So if you do need the information you can uncompress them and process them with last -f as suggested before.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin&lt;/DATE&gt;</description>
      <pubDate>Mon, 01 Mar 2004 21:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lastb-log-is-not-correct/m-p/3205452#M10320</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-03-01T21:59:45Z</dc:date>
    </item>
  </channel>
</rss>

