Keep people off your Mac when you walk away from your desk
Last checked: 20 Oct 2026 · macOS 26 & 27 · Source: Apple Support
Quick answer
Open System Settings > Lock Screen and set Require password after screen saver begins or display is turned off to Immediately. Then press Control-Command-Q each time you leave your desk.
PinSet does this in one step. Press ⌃ ⌥ Space and type it. 7 fixes free.
Black Friday: $4.99 (usually $9.99)
Download freeWhy it happens
Your Mac can wait a few minutes after the screen goes dark before it asks for a password again. Anyone who wakes it in that window gets straight in. Asking for the password immediately, and locking the Mac yourself when you leave, closes that gap.
How to fix it
Click the Apple menu, choose System Settings, then click Lock Screen in the sidebar.
Find Require password after screen saver begins or display is turned off and choose Immediately from its pop-up menu. Your Mac may ask for your password to confirm.
Lock Screen›Require password after screen saver begins or display is turned off
On the same page, shorten the time before the screen turns off. On a MacBook, set Turn display off on battery when inactive and the power adapter one to a few minutes. A desktop Mac has a single Turn display off when inactive menu. That way the Mac locks itself soon if you forget.
Lock Screen›Turn display off on battery when inactive
Each time you get up, press Control-Command-Q, or choose Lock Screen from the Apple menu. The screen locks at once and needs your password, Touch ID or Apple Watch to open again.
Apple menu›Lock Screen
Still not fixed?
Prefer a flick of the mouse? Open Desktop & Dock, click Hot Corners… and choose Lock Screen for one corner. Moving the pointer into that corner locks the Mac.
Desktop & Dock›Hot Corners…
Make sure the Mac doesn't sign in without a password after a restart. In Users & Groups, set Automatically log in as to Off.
Users & Groups›Automatically log in as
If someone already knows your login password, change it in Users & Groups and keep the new one to yourself. A separate user account for anyone who needs the Mac keeps your things private.
If these settings are greyed out, a company or school may manage the Mac, so ask whoever looks after it. If the Mac still opens without a password after all this, contact Apple Support.
Questions people ask
How do I lock my Mac quickly when I walk away?
Press Control-Command-Q, or choose Apple menu > Lock Screen. Your password is needed to get back in.
Why doesn't my Mac ask for a password after the screen goes dark?
Require password after screen saver begins or display is turned off is set to a delay. Set it to Immediately in Lock Screen settings.
Can my Mac lock itself when I leave?
Yes, once the screen turns off. Set a short time for the display to turn off in Lock Screen settings and require the password immediately.
Related fixes
Glad it worked.
Sorry it didn't. Tell us what happened and we'll fix this page.
Get there in one click with PinSet.
Press ⌃ ⌥ Space and type “coworkers use my computer when im away”. PinSet opens Lock Screen in System Settings and rings Require password after screen saver begins or display is turned off. One of 2,400+ checked Mac fixes. Works offline.
7 fixes free · Works offline · macOS 26 and 27