Guide - How to Lock Mac

Discussion in 'macOS' started by kalakov, Apr 4, 2011.

  1. kalakov macrumors member

    Joined:
    Apr 4, 2011
    #1
    Guide – How to lock your Mac OS X
    (This will not shutdown your computer or put it in sleep mode)

    Step 1

    Go to Applications –> Select Automator -> Select “Service” template and click Choose
    [​IMG]

    Scroll down or type in search bar to find “Run shell script”. Drag it to right where it says “Drag actions or files here to build your workflow”
    [​IMG]

    Now it will look something like this. Select the drop-down in front of “Service receives selected” and select “No input”.
    [​IMG]

    Now in the text box you can see “cat” written. Select “cat” and paste the following in its place:

    exec /System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend

    Select File from the menu bar and click save. Give it a name e.g. Lock Mac.
    Now exit Automator.

    Step 2

    Go to system preference and select Keyboard and then Keyboard shortcuts
    [​IMG]

    Select Services from the menu on the left side and then scroll down to “General” in the menu on the right side. You will find your service Lock Mac without any shortcut. Select a shortcut of your liking and you’re done. Remember to select a shortcut that isn’t already being used. (This is tricky but you’ll get the hang of it)
     
  2. Transporteur macrumors 68030

    Joined:
    Nov 30, 2008
    Location:
    UK
    #2
    And now the easy way:

    Applications -> Utilities -> Keychain Access -> Preferences -> Select "Show Status in Menu Bar".

    Done. :p:D
     
  3. GeekGuys macrumors regular

    Joined:
    Mar 13, 2009
    #3
    Easier Still.....

    Preferences - Users - Enable Switch Users

    Then select your user name in the menubar and select LOGIN WINDOW every time you want to lock the desktop.

    btw. this assumes you have a login password, as do all these suggestions!
     
  4. ivnj macrumors 65816

    Joined:
    Dec 8, 2006
    #4
    That was easy, thanks man.
     
  5. kalakov thread starter macrumors member

    Joined:
    Apr 4, 2011
    #5
    question

    none of the 2 ways above show a hotkey way. I've switched from windows to mac. any ideas on that??
     
  6. asdf29 macrumors newbie

    Joined:
    Dec 10, 2007
    #6
    Doesn't Cmd+Alt+Eject lock the mac? Why do you need to set anything up?
     
  7. ooninay macrumors member

    Joined:
    Mar 19, 2009
    Location:
    Toronto
    #7
    Cmd-Alt-Eject sleeps my Mac... which is cool because I didn't know about that shortcut, but not the same as locking the computer IMO.
     

Share This Page