r/linuxadmin • u/newworldlife • Mar 29 '26
How do you usually check logins on a Linux system?
Saw something small that didn’t quite match earlier.
Ran 'last -a' just to double check logins.
Nothing obviously wrong, but a couple entries didn’t line up with what I expected for that box.
Might be nothing tbh, but it made me pause for a second.
How do you usually decide what’s normal vs off?
0
Upvotes
11
u/escape_deez_nuts Mar 29 '26
I check /var/log/secure
2
u/Loud_Posseidon Mar 29 '26
send over to elastic, then filter out/visualize (if the task is more recurring) in kibana. You want the logs off of the server as soon as possible.
You may also want to set up anomaly detection in Elastic and move on from there - tickets/alerts/calls/...
7
u/chocopudding17 Mar 29 '26
Jeez, LLM spew in /r/linuxadmin? C'mon.
1
u/nof Mar 29 '26
The Cuckoo's Egg
2
u/disordr3000 Mar 29 '26
finger.
1
u/Ontological_Gap Mar 29 '26
'w' and the audit log
1
u/frymaster Mar 29 '26
sometimes hopping through a server with
ssh -Jor use ofscpor similar doesn't show up in one or more ofwho,w, andlast- I've never cared to check which is which. But they'll all show up in the sshd logs1
u/aieidotch Mar 29 '26
also check lastb