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

How can I activate the screen saver immediately after Mac OS X (10.6) logs me in automatically? I want the computer to reboot and log me in after a power failure, but I don't want it to be accessible to someone who happens to be standing nearby.

share|improve this question
I don't understand the point. If you just set it to require a login on reboot, isn't that equivalent behaviour? – ghoppe Sep 3 '10 at 15:10
@ghoppe logging in and locking the computer means you won't have to wait for the desktop environment to load. – Stephen Jennings Sep 3 '10 at 15:48
Thanks. An Automator action also works the same way. The loss in security is slight. This will keep people out unless they they take advantage of physical access to reset passwords, etc. – user48423 Sep 3 '10 at 17:31
Another (bit more expensive) solution: buy an SSD. – jsejcksn Jun 17 '11 at 2:31

Add a login script. It could either be done via the Shell:

open -a ScreenSaverEngine

or via Applescript:

tell application "ScreenSaverEngine" to launch

Applescript is probably the easiest way if you're not familiar with Shell scripting. Open Script Editor (Spotlight it), paste in the above script, and click File->Save As. Select Application as the file format. Save it somewhere, ~/Applications, ~/Library/Scripts, etc. Open up Accounts.prefPane, click on the login items tab for your account, hit the add button, then go find where you saved your script to.

If you're really that concerned about security though, you should disable autologin.

share|improve this answer

The system actually has built-in support for doing this:

defaults write /Library/Preferences/ autoLoginUserScreenLocked -bool true
share|improve this answer
Can you link to documentation on the developer site for this? Where did you find this? – jsejcksn Jun 17 '11 at 2:32
Which versions of OS X support this plist key that you know of. I'm going to look more into this. – jsejcksn Jun 17 '11 at 3:59
Works on 10.6. Does NOT appear to work on 10.5. If you find out anything else, let me know. – Gannet Jun 18 '11 at 10:51
This doesn't seem to persist beyond one reboot on El Capitan... – XåpplI'-I0llwlg'I - May 11 at 8:27
I never thoroughly tested this, from memory it didn't work on 10.7 so it's interesting to hear that it partially works on El Capitan. Are you saying it works once but then the settings is deleted? Perhaps you could lock the plist file to prevent it from being deleted. – Gannet May 11 at 23:34

You must log in to answer this question.

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