Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

So I want to prevent anyone from messing with iTunes, or anything on my MacBook actually. How can I password protect it without losing the sound?

share|improve this question

2 Answers 2

To keep any application active but to lock the machine you can try the following steps.

  1. Launch the “Keychain Access” application located in /Applications/Utilities.
  2. Choose “Show Status in Menu Bar” from the View menu.
  3. Now you have a lock in the menu bar. Use this menu to:
  4. Click on the "lock icon" in your menu bar
  5. Select "Lock Screen"

This activates Screen Effects which requires your password to unlock screen, but does not stop what is currently active on the OS


Another way to keep any application active but to lock the machine you can try the following steps.

  1. Open System Preferences

    a. Select the Preference Pane "Security"

    b. Choose the "General" tab

    c. Check "Require password"

    d. On 10.6 & 10.7 you can also set the time in which you would like to wait prior to initiating the lock (in this case you may want to choose "immediately")

  2. Select "Show All" Preference Panes

  3. Select the Preference Pane "Desktop & Screen Saver"

    a. Set the "Start screen saver" at its minimum (3 min)

After 3 min of no use your machine will start the screen saver and when the screen saver is stopped you will be prompted to type your Username and Password.

HOWEVER: (Though I like JW8 slick use of Hot Corners you do not need to set them up nor do you need to wait 3 minutes for the Screen Saver to begin, you can simply use the following key-combo

Crtl-Shift-Eject

You could also try the following commands if you have ambitions to create a short script.

NOTE: If a script sounds like something you would like to create you will need to ensure root privileges.

For 10.6 & 10.7 use the following command to make the security immediately follow the Screen Saver's launch:

defaults write com.apple.screensaver askForPasswordDelay 0

For 10.5, 10.6, & 10.7 use the following command to turn on Security Preferences for your Screen Saver:

osascript -e 'tell application "System Events" to set require password to wake of security preferences to true'

To force the screen to lock

open "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app"

NOTE: You may notice that regardless of how the screen is locked you may be immediately be prompted for your Username & Password as the running app is attempting to stop the Screen Saver/Lock. However, your application (iTunes in this case) will continue to run even while your screen is locked. :–)

share|improve this answer
1  
+1, good addition of scripts. –  JW8 May 18 '12 at 17:37

You'll need to do two things:

  1. Configure your system to require password after sleep or screen saver
  2. Set a hot corner for the screensaver (to trigger the screensaver when you want to leave your MacBook) or choose the Login Window from the menu (if you have faster user switching enabled)

Steps to configure require password (see this Apple KB):

  1. Choose Apple menu > System Preferences, click Security & Privacy, and then click General.

  2. Select Require password... after sleep or screen saver begins. You can adjust the amount of delay before a password is required in the pop-up menu.

To lock your screen quickly with fast user switching enabled, choose Login Window from the menu with your user name. Your applications will remain open and undisturbed, but your computer islocked.

Locking the screen doesn’t prevent other users from turning off the computer and restarting it, and then logging in to their own accounts. If you think this could happen, be sure to save your work before you leave your computer.

You can set the hot corner (if desired) in the Screen Saver preferences section (see this Apple KB):

Use the Screen Saver pane of Desktop & Screen Saver preferences to make images appear on your screen when you aren’t using your computer. You may want to do this to hide the items on your desktop while you’re away.

Hot Corners: Click to set a shortcut for starting or deactivating your screen saver. From Active Screen Corners, choose Start Screen Saver or Disable Screen Saver from the pop-up menu for a corner you want to use, and then click OK.

share|improve this answer
1  
Originally I was going to provide the same answer, but I couldn't get it to work :–( As it turns out when I actually tested this with iTunes rather than the YouTube video I was watching it does work for iTunes :–) –  E1Suave May 18 '12 at 16:59
1  
Though I like your slick use of Hot Corners you do not need to set them up nor do you need to wait 3 minutes for the Screen Saver to take begin, you can simply use the following key-combo Crtl-Shift-Eject :–) –  E1Suave May 18 '12 at 17:42
    
@E1Suave, good point! Just wanted to point to some settings that not all users take advantage of. Key combos are quite useful too. :) –  JW8 May 18 '12 at 21:16
1  
Adding the Screen Saver to Hot Corners is very handy and you did a very good job explaining how to set them up and apply them. :–) –  E1Suave May 18 '12 at 21:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.