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

Bug#3149: upgrading base truncates utmp



Package: base
Version: 1.1.0-9

After upgrading base or a running system, /var/run/utmp is a zero length
file.  I think it should not be part of the package - instead, postinst
should just touch it to make sure it exists.  Same goes for wtmp.
Truncating utmp is bad - "who" doesn't show who is logged in, "login"
complains "You must exec login from the lowest level shell" etc.

Also, I think the link /var/log/wtmp -> ../run/wtmp is wrong - wtmp
should be in /var/log, and the link is not needed.  Or is there
a newer version of FSSTND where they moved these files again?

What is /tmp/base.postinst for?  If it is necessary (I don't think
so, no other package installs its postinst script in /tmp), then it
should be moved somewhere else than /tmp - it's a security problem:
any user could create a symlink /tmp/base.postinst pointing to any
file they want overwritten as root...

Marek


Reply to: