Red Hat Bugzilla – Bug 4479
File lastlog becomes huge when using large uid's
Last modified: 2008-05-01 11:37:51 EDT
When using some high uid numbers (we use 50000 and up for
some special situations), the /var/log/lastlog file becomes
huge, 15+ MB in our case. Is this according to specs?
On an old RHL 3.0.3 system, the file is only 100 KB, using
the same set of uid's.
The bug is in useradd from the shadow-utils.
Fixed in the internal devel tree
More information - the size of the struct lastlog is increased under
glibc to ~ 300 bytes. That means that fo 50k uids one would need
15000k space for the lastlog, so the result is expected.
------- Additional Comments From 09/23/99 04:08 -------
I didn't test this with 50k uids, only with about 1500 uids in total,
but some uid numbers were above 50000. So the question is whether
unused uids also occupy a struct (which would be very bad behaviour,
assign to laroche
Can't be fixed without changing the internal format of /var/log/lastlog, which
we shouldn't do for interoperability reasons.