Mac 101: Locking your Mac with a hotkey, like you can with Windows
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 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]
Share
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
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 Permalink rate up rate down Reply1. 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"
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.
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.
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 Permalink rate up rate down ReplyI'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 Permalink rate up rate down ReplyThanks 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.
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
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 Permalink rate up rate down ReplyIf 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
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 Permalink rate up rate down ReplyIn 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 Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
- Philips wOOx Alarm Clock Radio for Apple iPod / iPhone for $60 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



64 Comments