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
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