[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#30962: general: /var/log/lastlog not rotated



In article <cistron.m0zsEUD-0005JvC@pimlott.ne.mediaone.net>,
Andrew Pimlott  <andrew@pimlott.ne.mediaone.net> wrote:
>Package: general
>Version: N/A
>
>I can't figure out what package should be responsible for this, but
>/var/log/lastlog (and /var/log/faillog) are not rotated.  The first can grow
>to enormous proportions.

This is not a bug, but it is a FAQ .. those files look big, but
they are "sparse". Do a "du /var/log/lastlog" to see how many space
the files really are taking.

% cd /var/log
% ll faillog
-rw-r--r--   1 root     root       156864 Dec 21 20:41 faillog
% du faillog 
15      faillog
% ll lastlog faillog
-rw-r--r--   1 root     root       156864 Dec 21 20:41 faillog
-rw-r--r--   1 root     root      1884860 Dec 21 20:41 lastlog
% du lastlog faillog
213     lastlog
15      faillog

Those files really should _not_ be rotated. They are more-or-less
databases.

Please close this bugreport.

Mike.
-- 
Indifference will certainly be the downfall of mankind, but who cares?


Reply to: