<?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: /etc/wtmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605122#M34981</link>
    <description>I just realized there is no percentage option for wtmp it will only allow you to trim back to zero in SAM, for other log files this option is available.  Sorry for the wrong info</description>
    <pubDate>Fri, 02 Nov 2001 23:17:04 GMT</pubDate>
    <dc:creator>Dan Decker</dc:creator>
    <dc:date>2001-11-02T23:17:04Z</dc:date>
    <item>
      <title>/etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605116#M34975</link>
      <description>What is the best way to trim the /etc/wtmp file?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-Chris D.</description>
      <pubDate>Wed, 31 Oct 2001 18:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605116#M34975</guid>
      <dc:creator>Robert C. Dunavent</dc:creator>
      <dc:date>2001-10-31T18:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605117#M34976</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The easy way is to do a cat&lt;BR /&gt;&lt;BR /&gt;cat /dev/null &amp;gt;/etc/wtmp&lt;BR /&gt;&lt;BR /&gt;here is a thread for some additional info.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=6831053f02947ad6b6/screen=ckiDisplayDocument?docId=200000053199208" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=6831053f02947ad6b6/screen=ckiDisplayDocument?docId=200000053199208&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2001 18:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605117#M34976</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-31T18:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605118#M34977</link>
      <description>Trim or delete?  You may want to save a few old wtmp files for reference later. I would do something like this:&lt;BR /&gt;&lt;BR /&gt;DATE=`date +%m%d%Y`&lt;BR /&gt;cp wtmp wtmp.$DATE&lt;BR /&gt;cat /dev/null &amp;gt; wtmp&lt;BR /&gt;gzip wtmp.$DATE (This may depend on the size of the file)&lt;BR /&gt;&lt;BR /&gt;Just my thoughts</description>
      <pubDate>Wed, 31 Oct 2001 18:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605118#M34977</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-31T18:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605119#M34978</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you want to completely null the file, then:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Note that /etc/wtmp is a link to /var/adm/wtmp.&lt;BR /&gt;&lt;BR /&gt;If, on the otherhand, you want to keep some of its contents, you must do something like this:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp &lt;BR /&gt;&lt;BR /&gt;This converts the binary file to an ASCII formatted one which you may edit and convert back to binary: &lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;You can perform similar manipulations with the 'btmp' data for "bad" logins. &lt;BR /&gt;&lt;BR /&gt;If you wish to totally stop logging to either the 'wtmp' or 'btmp' file, *remove* the file(s) you don't want.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 31 Oct 2001 19:00:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605119#M34978</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-31T19:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605120#M34979</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  wtmp holds useful info&lt;BR /&gt;on user login/logout activity.&lt;BR /&gt;So, instead of deleting or&lt;BR /&gt;trimming it, make a copy&lt;BR /&gt;of the file and then zero it.&lt;BR /&gt;&lt;BR /&gt;#cp /etc/wtmp /etc/wtmp.OLD&lt;BR /&gt;#&amp;gt;/etc/wtmp&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Wed, 31 Oct 2001 19:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605120#M34979</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-31T19:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605121#M34980</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Another way not mentioned is to go into Sam and edit you system files under Routine task when you highlight the individual line than click your tab key select actions, trim, you can choose to trim it back to zero or to a percentage so you do have some documentation on logins&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;DKD</description>
      <pubDate>Fri, 02 Nov 2001 23:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605121#M34980</guid>
      <dc:creator>Dan Decker</dc:creator>
      <dc:date>2001-11-02T23:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605122#M34981</link>
      <description>I just realized there is no percentage option for wtmp it will only allow you to trim back to zero in SAM, for other log files this option is available.  Sorry for the wrong info</description>
      <pubDate>Fri, 02 Nov 2001 23:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-wtmp/m-p/2605122#M34981</guid>
      <dc:creator>Dan Decker</dc:creator>
      <dc:date>2001-11-02T23:17:04Z</dc:date>
    </item>
  </channel>
</rss>

