Jump to content

Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2012/02/find-last-wake-time.jpg" alt="Find the last wake time" title="find-last-wake-time" width="620" height="240" class="aligncenter size-full wp-image-27739" /></p>

<p>Although everyone should always <a href="http://osxdaily.com/2011/01/21/password-protect-mac/">password protect a Mac</a> to prevent unauthorized use, not everyone does. Sometimes people share general logins, be it with a roommate, sibling, spouse or whoever else. Now, if you have ever wondered if someone was using your computer while you were away, there’s actually a pretty easy method to find out in Mac OS X. </p>

<h2 style="font-size:1.2em;">Find Out If Someone Was Using Your Mac with Console</h2>

<p>This works best if you put a Mac to sleep while away, since what we’re looking for are system wake events. If you aren’t sleeping a Mac while gone from the computer, start doing so now to track this wake data. </p>

<ul>

<li>Use Spotlight (Command+Spacebar) to search for and open “Console”</li>

<li>Click the search bar in the upper right corner of Console and type “Wake” to sort the system logs for wake events</li>

<li>Scroll to the bottom of the list to find the most recent events, search around in the listed data for a wake entry that corresponds to the time you suspect someone used the computer</li>

</ul>

<p>First you’ll want to make note of the time since that alone can give you the information you’re looking for. Furthermore, by <a href="http://osxdaily.com/2010/07/17/why-mac-wakes-from-sleep/">reading the wake reasons</a> you’ll be able to see how the Mac was woken up and by what method. For example, Mac laptops will show “EC.LidOpen (User)” or “LID0″ to indicate the Mac was woken by opening the screens lid. All Macs will show EHC or EHC2 to demonstrate that the Mac was woken by touching the keyboard or trackpad. OHC or USB generally indicates an external USB device or mouse was used to wake the Mac, and so forth. Some of the exact syntax for wake reasons will vary per version of OS X, but most of the codes are similar enough to draw shared conclusions. </p>

<p>Here are some example entries of what you may see in Console:

<code>2/24/12 3:22:26.000 PM kernel: Wake reason: EC.SleepTimer (SleepTimer)

2/24/12 3:40:31.000 PM kernel: Wake reason: EC.LidOpen (User)

2/24/12 5:23:40.000 PM kernel: Wake reason: EC.SleepTimer (SleepTimer)

2/24/12 8:11:03.000 PM kernel: Wake reason: EC.LidOpen (User)

2/24/12 9:05:09.000 PM kernel: Wake reason: EC.LidOpen (User)

2/24/12 9:32:06.000 PM kernel: Wake reason: EC.LidOpen (User)

2/25/12 00:51:44.000 AM kernel: Wake reason: EHC2</code></p>

<p>What you are ultimately looking for is a date, time, or a wake event that doesn’t correspond to your own regular Mac use. Perhaps waking by trackpad (EHC2) at midnight is suspicious, or maybe it was unusual to have someone open the lid of the laptop at 3:40 in the afternoon yesterday. Ultimately it is up to you to determine what is suspicious or out of place, but by looking at system logs you can get data that is practically guaranteed to be accurate because most users wouldn’t think to interfere with these logs.</p>

<p><strong>Finding Wake Information from the Command Line</strong>

If you’re more inclined to use the command line, or if you want to check wake events on a remote Mac via SSH, try using grep with the syslog command to look for “Wake” or “Wake reason”:</p>

<p><code>syslog |grep -i "Wake reason"</code></p>

<p>Using syslog with grep displays the exact same wake information as Console would, but because it’s accessible from the command line it can be more powerful for advanced users. </p>

<p>Keep in mind that while syslog and Console track sleep and wake data, they won’t necessarily show login attempts and failures, or waking a screen saver. In that case, the best protection is to always remember to set password protection on a Mac and <a href="http://osxdaily.com/2011/01/17/lock-screen-mac/">lock the screen</a> with a password even when you leave for a few minutes if you’re in a situation where sensitive data could be compromised or accessed by others.

<span id="more-27737"></span>

You can find similar information on Windows machines too, although you’ll have to <a href="http://lifehacker.com/5873538/how-to-find-out-if-someones-secretly-been-using-your-computer">look elsewhere for that</a>. </p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/ZDdkwuu-Bo153vJXK0jIrW5mcoY/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZDdkwuu-Bo153vJXK0jIrW5mcoY/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/ZDdkwuu-Bo153vJXK0jIrW5mcoY/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZDdkwuu-Bo153vJXK0jIrW5mcoY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=W7SyTIZOosg:YBxF6Ov5GZs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=W7SyTIZOosg:YBxF6Ov5GZs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=W7SyTIZOosg:YBxF6Ov5GZs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=W7SyTIZOosg:YBxF6Ov5GZs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=W7SyTIZOosg:YBxF6Ov5GZs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=W7SyTIZOosg:YBxF6Ov5GZs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=W7SyTIZOosg:YBxF6Ov5GZs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/W7SyTIZOosg" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...