<?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: last command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933378#M803293</link>
    <description>Hi Mani,&lt;BR /&gt;&lt;BR /&gt;Yes, please try this:&lt;BR /&gt;# mv /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;# touch /var/adm/wtmp&lt;BR /&gt;# chmod 664 /var/adm/wtmp&lt;BR /&gt;# chown adm:adm /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Try login and run command "last" again to see how.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Mei</description>
    <pubDate>Fri, 14 Oct 2005 02:38:21 GMT</pubDate>
    <dc:creator>Mei Jiao</dc:creator>
    <dc:date>2005-10-14T02:38:21Z</dc:date>
    <item>
      <title>last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933371#M803286</link>
      <description>The output from last command is&lt;BR /&gt;wtmp begins Thu Oct 13 22:32&lt;BR /&gt;&lt;BR /&gt;It doesn't show me all the logon connections. I'm on HPUX 11i. Can someone tell me what's wrong?</description>
      <pubDate>Thu, 13 Oct 2005 09:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933371#M803286</guid>
      <dc:creator>Mani Pushpanathan</dc:creator>
      <dc:date>2005-10-13T09:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933372#M803287</link>
      <description>Someone has nulled the wtmp file, probably because it was too large.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 13 Oct 2005 09:47:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933372#M803287</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-10-13T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933373#M803288</link>
      <description>check your crontab. More often than not, I have seen previous sysadmins put a daily/weekly job to zero out the wtmp file just because there are too many entries in it gets accumulated.&lt;BR /&gt;&lt;BR /&gt;Also keep in mind that, sometimes this file gets corrupted and there is no other recovery than zeroing it out.</description>
      <pubDate>Thu, 13 Oct 2005 09:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933373#M803288</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-13T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933374#M803289</link>
      <description>Mani,&lt;BR /&gt;&lt;BR /&gt;The fact that it is saying that wtmp begins on today's (well at least your post date) date means that something has wiped out the history of logins on your host.&lt;BR /&gt;&lt;BR /&gt;wtmp is the file where this information is stored and last is telling you that the file only started today... that's why you don't see anything.</description>
      <pubDate>Thu, 13 Oct 2005 18:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933374#M803289</guid>
      <dc:creator>Michael Jorgensen</dc:creator>
      <dc:date>2005-10-13T18:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933375#M803290</link>
      <description>Guys&lt;BR /&gt;    Its true that I nulled the file yesterday because prior to that I was still getting no output from the command although I've done numerous logins earlier. This morning, the output shows a different date and nothing else. Pretty strange. see below&lt;BR /&gt;&lt;BR /&gt;# ls -l w*&lt;BR /&gt;-rw-rw-r--   1 adm        adm          11761 Oct 14 09:02 wtmp&lt;BR /&gt;-rw-------   1 root       sys            280 Sep 16 16:19 wtmpx&lt;BR /&gt;# last&lt;BR /&gt;&lt;BR /&gt;wtmp begins Sat Sep 21 20:47</description>
      <pubDate>Thu, 13 Oct 2005 20:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933375#M803290</guid>
      <dc:creator>Mani Pushpanathan</dc:creator>
      <dc:date>2005-10-13T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933376#M803291</link>
      <description>Try to check any cron jobs are running in the system. what does your lastb command show ? Just curious to know.. &lt;BR /&gt;&lt;BR /&gt;[I have assigned points to 0 of 16  responses to  my questions.] Make it 16/16 and you will get more replies. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 13 Oct 2005 22:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933376#M803291</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-13T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933377#M803292</link>
      <description>Just do check points as,&lt;BR /&gt;&lt;BR /&gt; a) permission of /var/adm directory&lt;BR /&gt;&lt;BR /&gt;# ls -ld /var/adm&lt;BR /&gt;drwxr-xr-x  12 adm        adm           8192 Oct 14 00:39 /var/adm&lt;BR /&gt;&lt;BR /&gt; b) # ls -l wtmp&lt;BR /&gt;-rw-rw-rw-   1 adm        adm            420 Oct 14 00:49 wtmp&lt;BR /&gt;&lt;BR /&gt;Next level:&lt;BR /&gt;&lt;BR /&gt;  # mv /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;  # touch /var/adm/wtmp&lt;BR /&gt;  # chmod 664 /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Try with new (few) logins and audit it.&lt;BR /&gt;&lt;BR /&gt; # last -f /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;If it is not working then,&lt;BR /&gt;&lt;BR /&gt; # uname -a&lt;BR /&gt; # what `which login`&lt;BR /&gt;&lt;BR /&gt;Post this.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;  # chown adm:adm /var/adm/wtmp</description>
      <pubDate>Fri, 14 Oct 2005 02:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933377#M803292</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-14T02:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933378#M803293</link>
      <description>Hi Mani,&lt;BR /&gt;&lt;BR /&gt;Yes, please try this:&lt;BR /&gt;# mv /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;# touch /var/adm/wtmp&lt;BR /&gt;# chmod 664 /var/adm/wtmp&lt;BR /&gt;# chown adm:adm /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Try login and run command "last" again to see how.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Mei</description>
      <pubDate>Fri, 14 Oct 2005 02:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933378#M803293</guid>
      <dc:creator>Mei Jiao</dc:creator>
      <dc:date>2005-10-14T02:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: last command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933379#M803294</link>
      <description>Thks Muthukumar. It works now.</description>
      <pubDate>Fri, 14 Oct 2005 02:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/4933379#M803294</guid>
      <dc:creator>Mani Pushpanathan</dc:creator>
      <dc:date>2005-10-14T02:56:15Z</dc:date>
    </item>
  </channel>
</rss>

