Last Updated: February 25, 2016
·
776
· owainlewis

Check machine logins

Sometimes you want to know when someone logs in to your machine when they shouldn't or when you started working on your machine.

The quickest way on osx is a simple

last | grep reboot

It should return a list of your login times

reboot    ~                         Wed Dec  4 09:48
reboot    ~                         Tue Dec  3 08:18
reboot    ~                         Mon Dec  2 08:00
reboot    ~                         Sun Dec  1 08:52
reboot    ~                         Sat Nov 30 10:16
reboot    ~                         Fri Nov 29 18:04
reboot    ~                         Thu Nov 28 18:41

Which will tell you when your machine was accessed and also acts as a handy indicator of when you start work each day.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

Most application security programs still stop at the repository. The page a visitor loads can run third-party scripts that read the DOM, change a checkout, or steal a session after the deploy already looks clean.

Security insights from Cside