system with high numbered uids has huge sparse /var/log/lastlog
Bug #1707645 reported by
Jamie Strandboge
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
shadow (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
util-linux (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I was investigating the use of a single high UID user (ie, 2000000000) and discovered that /var/log/lastlog grew to an enormously large sparse file:
$ ls -lh /var/log/lastlog
-rw-rw-r-- 1 root utmp 544G Jul 27 12:35 /var/log/lastlog
The file is actually quite small though:
$ ls -lh --size /var/log/lastlog
56K -rw-rw-r-- 1 root utmp 544G Jul 27 12:35 /var/log/lastlog
On a standalone system, this is possibly not a problem since it is highly unlikely that a system will have 2 billion users, but this is confirmed to wreak havoc on rsync backups.
Changed in util-linux (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: artful |
To post a comment you must log in.
FYI, people using rsync for backups might be interested in the --sparse (-S) option.