Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicates:
Equivalent of Win-L on Mac
Is there a keystroke that can lock the Mac OS X screensaver?

I am using a MacBook Pro running Mac OS X 10.5. I am new to this development environment, and previously worked on Windows.

I am wondering how to lock screen for Mac computer, like Windows Key + L to lock screen for Windows PC?

Thanks in advance.

share|improve this question

marked as duplicate by Arjan, quack quixote May 14 '10 at 22:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

you're asking some good questions, but do me a favor. don't say "hello", and don't sign your name. (saying "thanks" is ok.) also, use the tag "[osx]" when asking about the operating system, and the tag "[mac]" when asking about the hardware. thanks! – quack quixote May 14 '10 at 7:18
Thanks! I am newbie and I may make mistakes. I appreciate your help and I want to improve step by step. Any further issues, please feel free to let me know. :-) – George2 May 14 '10 at 7:19
up vote 15 down vote accepted

as it happens, lifehacker brought a story today about locking the mac:

All you need to know is the Shift+Ctrl+Eject shortcut. By default,
this shortcut simply sleeps your display; wiggle your mouse to wake
it up. That's nice to know, but it's not much of a lock. The solution:

Under System Preferences → Security → General, check ‘Require password 
after sleep or screensaver begins'. This has the advantage of working 
perfectly with the keyboard combo to switch off your display.

or, just to put it into other words: configure the screensaver to ask for the password and then activate the screensaver (either via a key shortcut or by putting the mouse in an active corner and configure osx to activate the screensave while the mouse is in that corner).

share|improve this answer
this only activates your screensaver. the point is that you have to enter the password to deactivate the screensaver, the programs continue to run with or without the screensaver. – akira May 14 '10 at 7:33
the keyboard kombination of shift+ctrl+eject starts the screensaver instantly. – akira May 14 '10 at 8:22
What is the eject key you mean? I did not find a key called "Eject" on my MacBook Pro. – George2 May 14 '10 at 8:25
Thanks, question answered! – George2 May 14 '10 at 8:40
On the Mac Air (maybe MacBook Pro too), I type CONTROL+OPTION+POWER to turn off the screen. (Tested in Mavericks.) However, note on my Mac Air that I have my COMMAND and CONTROL buttons swapped. So, for you, it might be COMMAND+OPTION+POWER. I then wiggle the mouse and I see a login screen. – Volomike Mar 12 '14 at 13:49

You can use Keychain Access (in your Applications/Utilities folder) to quickly activate your screen saver from the menubar and require a password to turn it off, even if the Security pane option isn't enabled. Open Keychain Access and then go to Keychain Access: Preferences. Click on the General tab and select the Show Status in Menu Bar option. A small lock icon will appear in your menu bar. Close the Preferences window and quit Keychain Access. Now click the lock icon in your menubar and choose Lock Screen to start your screen saver. It can only be unlocked with your account password.

share|improve this answer

If you have a menu in your top-right for user switching, go to it and choose 'Login Window'. I use Quicksilver, and I have an AppleScript called 'Lock' that I can run - it simply fires off the following:

do shell script "/System/Library/CoreServices/Menu\\ Extras/ -suspend"

When I need to go away from my machine, I simply hit Opt+Space, type 'Lock' (often 'lo' will do), hit Enter.

Unlike screensaver based solutions, this means that other users can log in.

share|improve this answer

The quickest way to lock your desktop is to hit Shift-Command-Option + Q to do a fast user logout.

share|improve this answer
I do not want to logout, I just want to lock screen. – George2 May 14 '10 at 7:27

Not the answer you're looking for? Browse other questions tagged .