<?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/2556288#M28779</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't care about the contents of the wtmp file,  truncate it (&amp;gt; /var/adm/wtmp).&lt;BR /&gt;&lt;BR /&gt;If you want to keep the logging, try this:&lt;BR /&gt;&lt;BR /&gt;#  cat /var/adm/wtmp | /usr/sbin/acct/fwtmp &amp;gt; filename&lt;BR /&gt;# vi filename&lt;BR /&gt;...&lt;BR /&gt;remove the entries you do not want&lt;BR /&gt;...&lt;BR /&gt;# cat filename | fwtmp -ic &amp;gt; /var/adm/wtmp.new&lt;BR /&gt;&lt;BR /&gt;Now, check your newly created wtmp file:&lt;BR /&gt;&lt;BR /&gt;# last -f /var/adm/wtmp.new&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;If the results are satisfactory, move the new file to /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Rik</description>
    <pubDate>Tue, 24 Jul 2001 12:04:48 GMT</pubDate>
    <dc:creator>RikTytgat</dc:creator>
    <dc:date>2001-07-24T12:04:48Z</dc:date>
    <item>
      <title>Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556287#M28778</link>
      <description>Even After rebooting the system, the last command shows that users are still logged in. How can I solve it? Thanks.</description>
      <pubDate>Tue, 24 Jul 2001 11:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556287#M28778</guid>
      <dc:creator>George_14</dc:creator>
      <dc:date>2001-07-24T11:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556288#M28779</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't care about the contents of the wtmp file,  truncate it (&amp;gt; /var/adm/wtmp).&lt;BR /&gt;&lt;BR /&gt;If you want to keep the logging, try this:&lt;BR /&gt;&lt;BR /&gt;#  cat /var/adm/wtmp | /usr/sbin/acct/fwtmp &amp;gt; filename&lt;BR /&gt;# vi filename&lt;BR /&gt;...&lt;BR /&gt;remove the entries you do not want&lt;BR /&gt;...&lt;BR /&gt;# cat filename | fwtmp -ic &amp;gt; /var/adm/wtmp.new&lt;BR /&gt;&lt;BR /&gt;Now, check your newly created wtmp file:&lt;BR /&gt;&lt;BR /&gt;# last -f /var/adm/wtmp.new&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;If the results are satisfactory, move the new file to /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Rik</description>
      <pubDate>Tue, 24 Jul 2001 12:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556288#M28779</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2001-07-24T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556289#M28780</link>
      <description>cat /dev/null &amp;gt; /var/adm/wtmp zeroes the input file for the last command</description>
      <pubDate>Tue, 24 Jul 2001 12:07:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556289#M28780</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-07-24T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556290#M28781</link>
      <description>Hi,&lt;BR /&gt;the last command list the users who were logged in and exit. to get the current logged in users use 'w' commad. if you don't want to see any last users make it null by #cat /dev/null &amp;gt; /var/adm/wtmp</description>
      <pubDate>Tue, 24 Jul 2001 12:14:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556290#M28781</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-07-24T12:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556291#M28782</link>
      <description>I do care about the content. When I execute last command in solaris it shows all the logged users and the users who have acces the system, it doesn't shows the logged out users as still logged in.But in HP ,even though the user(s) is(are) logged out, when I execute last command it shows me the user still logged.</description>
      <pubDate>Tue, 24 Jul 2001 12:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2556291#M28782</guid>
      <dc:creator>George_14</dc:creator>
      <dc:date>2001-07-24T12:43:50Z</dc:date>
    </item>
  </channel>
</rss>

