I would like to see who and when logged in to my turris omnia, wtmp seems to be disabled and there seems to be no last and w command, how to enable wtmp log and which packages contains mentioned commands?
ok, I found a way via:
cat /var/log/messages.1 | grep “Accepted publickey for”
but I still don’t understand what makes wtmp and last command tick on OpenWRT…
From some conversation on dev.openwrt …
By default applications like openssh and dropbear are configured with the following flags:
--disable-lastlog --disable-utmp --disable-wtmp
so that’s possibly why utmp,btmp,wtmp are not present or zero size.
1 Like