Enabling Linux login logging in wtmp
Posted
by jean88
on Super User
See other posts from Super User
or by jean88
Published on 2010-04-10T15:19:26Z
Indexed on
2010/04/10
15:23 UTC
Read the original article
Hit count: 341
On a Ubuntu 9.10 system:
$ uname -a
Linux ionut-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
the files /var/log/wtmp and /var/log/btmp are empty:
$ ls -la /var/log/?tmp
-rw-rw---- 1 root utmp 0 2010-04-10 16:54 /var/log/btmp
-rw-rw-r-- 1 root utmp 0 2010-04-10 16:54 /var/log/wtmp
Because of this, the last(1) command is not working.
What to do?
© Super User or respective owner