Trim wtmp/wtmpx

From: Yv SR (yv_sun@hotmail.com)
Date: Mon Jan 13 2003 - 10:56:16 EST


Hi,

I was trying to trim the /var/adm/wtmp with the following procedure

        /usr/lib/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp.ascii
        tail -500 /tmp/wtmp.ascii > /tmp/wtmp.500
        /usr/lib/acct/fwtmp -ci < /tmp/wtmp.500 > /var/adm/wtmp
        cat > /var/adm/wtmpx
        rm /tmp/wtmp.ascii
        rm /tmp/wtmp.500

After to re login into the server and run last command i can't see the
old(saved) logging information from new wtmp. Any ideas?

OS: solaris 2.6

Yv/-

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:35 EDT