Linux: Find out who was logged on when?

1

I need to find out which user screwed up the ssh config. There's nothing in anyone's bash history. But I did see when a bunch of ssh-related errors in the logs that started at a specific time.

I'm thinking I could narrow it down by finding out who was logged on then. Is this possible on linux?

(On a side note: this is for a class, the other users are my classmates, they're doing the same thing, and we're all aware that everyone is snooping on our activity)

user1399747

Posted 2013-04-08T01:21:39.460

Reputation: 55

Answers

1

Check the output of lastlog. Check also utmp(5).

vonbrand

Posted 2013-04-08T01:21:39.460

Reputation: 2 083

It might pay to mention that last outputs the info ... – tink – 2013-04-08T02:00:11.020

0

You can check with /var/log/secure file

/var/log/secure Contains information related to authentication and authorization privileges. For example ssh logs all the messages here, including unsuccessful login.

max

Posted 2013-04-08T01:21:39.460

Reputation: 3 329