Lock a Mac Screen
Any time that you are away from your computer, it’s a good idea to lock the screen. This provides a level of privacy and security to the Mac that is very easy to use and implement and it should be considered a must-use trick, particularly for anyone working in public spaces, offices, schools, or anywhere else that there is potential of an outside party accessing the computer.
Lock your Mac Screen
The absolute fastest and easiest way to lock the screen in Mac OS X is with a simple keyboard shortcut:
- Control+Shift+Eject is the keystroke for Macs with an Eject key
- Control+Shift+Power is the keystroke for Macs without the eject key, like the MacBook Air
Hit the appropriate key combination for your Mac model and the Macs screen will instantly go dark. This will also be the key command to lock the Mac screen, requiring a user to enter a password before the computer can be accessed again, looking like this:

But first, you must enable that locking setting. If you don’t have that feature enabled yet, here’s how to set this up on any Mac:
Enable the Lock Screen in Mac OS X
This will cause the above keyboard shortcuts to lock the screen with a password:
- Launch System Preferences
- Click on “Security & Privacy” and look under the “General” tab
- Click the checkbox next to “Require password after sleep or screen saver begins” – select either immediately or 5 seconds as the time interval
- Exit out of System Preferences

You can easily confirm the setting is now functioning by hitting the aforementioned keystroke for your Mac model, which will make the screen go black instantaneously. If you chose the immediate option in Security preferences, then you will need to enter the user password before being able to use the Mac again, the option to wait 5 seconds gives you a few seconds of allowance before requiring the password, which may be more desirable in some situations. You’ll probably have noticed that other choices are available in the timing, but realistically anything higher than a minute starts to lose it’s security benefits, thus the shorter times are most desirable for optimal privacy.
The Mac OS X lock screen is the same as what you see when you wake a Mac from sleep or a screensaver when this feature is enabled, so remember that if you use a screensaver that auto-activates or sleep your Mac regularly, you’ll also be entering your password.
This feature is supported on just about every version of OS X and is highly recommended to enable on any Mac in offices, schools, public places, and any other environment where you may have sensitive data on your machine that you want to keep from prying eyes. Another very worthwhile endeavor is to add a login message to OS X, this can include things like identifying information of the Mac, or better yet, ownership details like a name, email address, or phone number.
If you happen to forget your Mac password, you can reset it through a few different methods.

I find that using expose active screen corners for this works really well also.
Very quick way to lock by dragging the mouse to the corner.
Thank you!! i never stop learning these things about my mac!!
U guys rock for publishing things like this.
Yeah… This is nice, but press the shortcut and then immediately move the mouse and you’ll be able to see the screen waked up you can see everything, control everything with the mouse, but it still asks for the password. This lock function on Macs or so buggy… To avoid accidents better use user switch and leave your mac showing the login screen.
thx
great tip with the key combo
I Use Expose and this is the best for upper left corner.
I use this a lot, because when i stand up and leave my mac i don’t want anybody to touch it. So upper left with the mouse and it goes black. After that when you move your mouse it asks for a pass. Thats the best option
[...] How to Lock the Mac Screen with a Keystroke [...]
[...] OS X, Tips & Tricks – February 10th, 2011 – No Comments We showed you how to lock your Mac screen with a keystroke, but you can also access the same desktop lock through a little known Mac OS X [...]
[...] security reasons, it’s always a good idea to lock your Mac screen when you step away from the keyboard. On the other hand, there are times where you’ll be away [...]
[...] Developer Preview 3 brings some nice new UI changes to the lock and login screens. Now when you lock your Mac screen in Lion with Control+Shift+Eject, you’ll see a small login window over the current background [...]
[...] folder is named after and it’s also the shorthand name for logging into the Mac either from a lock screen or network [...]
[...] you want to confirm the change, activate a screen saver with a sleep corner or lock your Mac screen, just be sure that you require a password or you won’t see your message. You can see what [...]
My Mac is set to lock after 60 min when put to sleep. Nevertheless my brother seems to be able to lock the screen instantly. Does anyone have any ideas on how he does it?
thk very nice …
[...] moving the cursor isn’t your preference, you can also setup a keyboard shortcut to lock the Mac screen. In both cases, if you have a password enabled for the lock or screensaver screen you will need to [...]
The bummer about this keystroke, is that it locks the screen AND puts the display to sleep. I really with is just locked the screen (like the option in Keychain Preference). It’s a nice tip if someone really wants to sleep their displays. Not so hot if you just need it locked. Sleeping/Waking the screen every time I leave or comeback is a major pain. I don’t understand why OSX doesn’t have an easy keyboard shortcut to just lock the screen (without doing anything else).
You could try activating a sleep corner for the screen saver only
[...] the login name change took place by logging out or by locking the screen, both of which will bring you to the standard OS X login window. This is the same for OS X 10.7 [...]
[...] right from the Terminal. This does not log a user out, it just brings up the standard Mac OS X lock screen and login window, requiring a valid user and password before the Mac can be used [...]
[...] waking each Mac from a screen saver, though a password must be entered on each individual Mac if a lock screen is [...]
Works like a charm! Thanks buddy!
[...] can use them for anything, including email accounts, iCloud and iTunes, SSH, logging into OS X and the lock screen, and even logging into the iOS lock screen. Just don’t forget [...]
[...] a replacement for setting a general password for a Mac, and it’s always a good idea to lock down the screen when you’re away from the computer. Filevault also provides encryption and security features, [...]
Thanks! This worked like a charm!
[...] be sure to put a reasonable way for someone to get in contact with you. Also, be sure to set the screen saver to require a password, and also set login and lock screen messages too. stLight.options({ [...]
[...] find non-exact phrases like “Lock Screen”, which will match up to the security panel where the “Require password for sleep and screen saver” feature is enabled, despite not even coming close to sharing the searched phrase. [...]
[...] is to require passwords for things like boot login and when waking from sleep. Enable and use the screen lock feature when you step away from your desk, and disable Automatic Login through the Users & Accounts [...]
Nice!
thanks!
Hi, new mac pro retina 13 does not seem to have eject button. Which combination will work the same?
Great question! We just updated the article to directly address this. The keyboard shortcut for MacBook without an eject button is Control+Shift+Power, enabling the password option is the same though.
[...] Instantly shutting off the Macs screen will also lock it with a password if that option has been enabled separately through the Security & Privacy preference [...]
[...] we’ll mention, this is best used in conjunction with the standard Mac lock screen trick that utilizes the screen saver and can be activated through a keystroke, and should not be [...]
[...] specifically for the display in these choices, for that you will still need to either use the lock screen keystroke or a hot corner that is configured to sleep only the [...]