Find out the user’s login history to the server

Below you can find out how to get the user’s login history to the server.

utmpdump /var/log/wtmp* | awk ‘$4~”userA” {print}’ > /var/tmp/userAtime

awk ‘$8>”[28/Jun/2018:16:10″ && $8<“[24/Jul/2018:16:10″‘ /var/tmp/userAtime

Leave a Reply

Your email address will not be published. Required fields are marked *