[Sunhelp] Truncating wtmp files?

Alex Shavkun sae at news.dcn-asu.ru
Thu Apr 20 07:21:43 CDT 2000


----------
X-Sun-Data-Type: text
X-Sun-Content-Length: 683
X-Sun-Charset: ascii

> Hi,
> does anyone have any experience in truncating the
> wtmp/wtmpx files in a 'safe' way on a system where
> users frequently login and out all the time ?
> Preferrably in a way where you doesn't loose any
> information, like keeping the N last entries or
> something.
> Maybe it's sufficient just to 'cp /dev/null /var/adm/wtmp*'
> or can you loose access information ?
> 
> Thx,
> Mats
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp

See the attachment.

Bye.
Alex.

----------------------
Altai State University
e-mail: sae at asu.ru
tel   : +7 3852 220202
fax   : +7 3852 367423
----------
X-Sun-Data-Type: default
X-Sun-Content-Length: 2474
X-Sun-Encoding-Info: uuencode
X-Sun-Data-Name: wtmp.trunc.gz
X-Sun-Data-Description: wtmp.trunc.gz

begin 600 wtmp.trunc.gz
M'XL("-,X7S<  W=T;7 N=')U;F, G5=I<^+&%OVN7W%C4QGCQ^(EF51(>1+&
MD(QJ;* 0Q.7,4FZD!KJLA6JU;)-Y\]_?N=T2B\?SY5&%D;KO?L\]W3[\H3U3
M:3M?>H?>(3V:9$4MHXLT%$;24;O(=5M$29LW-NMU:D*V^FRDLS at B+<-,1SEE
M\SF^SIY((_OPQ"Z at .%FJG/)0JY6A1Y'3HU;&R)1F:^J)!Q71E4HCF3<HMK]_
MI-*$6=+"%\I'89TNL]5:J\72T.FOO_[T7*]EG8RD3E2>JRPEDU$(#3([?MFM
M2(V,VJF4D8P(6PMM5QK07ND,!K%LEL*0,KP=J=QH-2L,2Z=8S*D_F/CC_N2V
M at 84P+B*5+J!L_82;&-/,J%#:*L!$& N52-T@$<<02A*9&J3*NV8IH8VU52Q1
M3A=IB^@ZB]1<H<1()J=$K&DF\1-)S at Q*%,FY*&(#Y0<1%Y*K;]<GUZ.>/V[0
MC?W[OM\?63]_^E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