Possibly even to an extent that is far more than healthy, given how crufty utmp and wtmp are. systemd supports several kinds of dependencies between units.
# Use wtmp (5) to record client connections and disconnections.
Unfortunately sftp does not write an entry to / var / log / wtmp when the user authenticates, so when i run the last command, they dont show up.
Hide processes wted wtmp / utmp editor! z2 Zap2 utmp / wtmp / lastlog eraser!
A record of individual login and logout are written in / var / log / wtmp.
Link to this page