Skip to Content

Mac 101: Locking your Mac with a hotkey, like you can with Windows

LockTightOne of the things that confused me the most when I switched to the Mac platform was the fact that there's no built-in way to lock the computer manually with a hotkey when walking away from it. This is something that was drilled into me from working in an office full of pranksters where leaving your computer unlocked was virtually a guarantee that you would be hosting a party for all of your co-workers that coming weekend.

It turns out that this is an oversight in Mac OS X, and a 3rd party utility is required to be able to lock your computer with a hotkey. For a simple solution I would suggest installing a very basic preferences pane called LockTight.

LockTight does exactly what you're looking for: assign a specific hotkey that when pressed will lock your Mac, requiring a password to unlock it if you have it configured to require a password to wake from sleep or screen saver (which you should).

Update: Reader Chad reminds us that if you actually want your machine to go to sleep with a keystroke (as opposed to simply locking the screen) you can use the Option-Cmd-Eject key combo.

[via Lifehacker]



Categories

Software Mac 101

One of the things that confused me the most when I switched to the Mac platform was the fact that there's no built-in way to lock the...
 

Add a Comment

*0 / 3000 Character Maximum

64 Comments

Filter by:
iJason

Even easier is you turn on require password after sleep or screen saver then enable a hot corner to turn on the screen saver then just drop your mouse in the corner when you walk away.

June 21 2009 at 3:32 PM Report abuse rate up rate down Reply
Harvey

1. My Keychain Access.app has no menu option for Lock Screen.
2. Because no one else mentioned it, hold down Shift (for example) when creating the hot corner for the screensaver. Now to activate, you have to hold down Shift and hit the corner with the mouse.

Seriously, holding down Shift and flicking your wrist is really harder than the Windows key strokes?

Ok, you want the login screen. Well, several commenters mentioned how to do that with utilities and a single keystroke. If you're really an IT person, I can't imagine you're using a Mac without Quicksilver, Butler, Sparks, or one of the many other programs similar to those. It seems as though you're just griping because it's different.

If you want a somewhat native solution, open Script Editor.app, enter the following (below) and Save As... "Lock Screen" Type:Application. Now you can activate Spotlight: Cmd-Space, type Lock, and hit Enter.

... stolen from http://www.macosxhints.com/article.php?story=20031102031045417 ...
do shell script "/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession -suspend"

June 20 2009 at 5:48 AM Report abuse rate up rate down Reply
Taylor Jones

I think it's usually beneficial if commenters read all posted comments before replying to a posting... otherwise we end up with 10 of the same comments as above.

In response to Joshua Meadows - Macs and PC's are different. Like boys and girls. They're anatomies are different. Playing a secondary machine's sounds through a primary machine's speakers is not exactly a commonly requested function... Apple focuses their development efforts on features that we all actually take advantage of, like system stability...

I believe Keychain's menubar option for "Lock Screen," the password dialogue following wake from sleep or screensaver, and the Fast User switching option all have the same function and security.

I like this app's purpose - allowing users to easily lock their computer when they run down the hall for a minute is quite helpful. Thanks Jason for a great post.

June 19 2009 at 3:00 PM Report abuse rate up rate down Reply
1 reply to Taylor Jones's comment
Joshua Meadows

Yeah thanks for that, all this time I was wondering why my MacBook PC had a funny apple sign on the back.

Pedantic sarcasm aside, if there's a third party tool to do it, it's obviously enough of function to need that tool. Not to mention the fact that it works by default in Windows.

Just because it's not common to you does not make it uncommon. There's a whole host of reasons why someone would want their line-in sound playing without needing to have a recording going on (ancillary to my purpose, of piping a second machine's sound through one set of speakers), many of which involving the commonly used audio recording/music industry purpose that I'm constantly being told is Mac-only.

June 19 2009 at 3:21 PM Report abuse rate up rate down Reply
Rich

You can also setup hot corners (in 10.5) + screensaver locking and then simply swipe your mouse to that corner to lock your system.

June 19 2009 at 2:33 PM Report abuse rate up rate down Reply
The Angry Intern

I've been using Butler to accomplish this. I've got it set so I hit ctrl-option-L and it swings around to the login screen. works great for me.

June 19 2009 at 2:14 PM Report abuse rate up rate down Reply
MikeWard1701

Thanks for the info! Considering the 13" MBP and It'll be my first mac.

Been wondering about things like this and other differences in OS X compared to Windows.

June 19 2009 at 1:34 PM Report abuse rate up rate down Reply
Daveoc64

I will be using this.

NONE of the alternatives including:

-Exposé
-Sleep Mode (totally useless if you want to leave something like MSN running while you're out of the room)
-Screen Saver passwords
-The dashboard widget I have (which is actually the best I've used)

can come close to matching Windows Key and L

June 19 2009 at 12:52 PM Report abuse rate up rate down Reply
3 replies to Daveoc64's comment
Jason

There is a hotkey: simply hold down the Option and Command keys and press the Eject key. This immediately puts your Mac to sleep (with Leopard at least). If you require a password to wake from sleep, then you have your hotkey lockdown.

June 19 2009 at 11:48 AM Report abuse rate up rate down Reply
Brent

If you'd rather just turn the screen off rather than putting the whole machine to sleep just use Mac OS X's built in hotkey combo:

Control - Shift - Eject

June 19 2009 at 11:47 AM Report abuse rate up rate down Reply
Rafe H.

Can't other admins unlock a Windows box as well? If so, where does it put them - back at the original user's Desktop? If not, well then that would be silly wouldn't it?

June 19 2009 at 11:39 AM Report abuse rate up rate down Reply
1 reply to Rafe H.'s comment
Narles

In Windows if an Admin unlocks the screen from another Admin or user it just kicks them off the computer and goes back to the login screen (stopping any user processes). With the Mac Screen Saver lock, any admin can unlock the screen and restore that exact locked user session. With the fast user switching lock method, an admin or user that attempts to "unlock" the computer will actually just log into the computer creating a new session and maintaining the previous user's session.

June 19 2009 at 11:51 AM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.