Auto Login with Password?

Discussion in 'macOS' started by GR2345, Mar 15, 2009.

  1. GR2345 macrumors newbie

    Joined:
    Mar 15, 2009
    #1
    Hello MacRumors folks! I just have a little question about starting my MacBook Pro, nothing too important, just trying to further streamline my OS X experience. ;) :cool:

    Currently, I am using the Schedule... feature in the Energy Saver portion of Sys Prefs (which is, oddly enough, represented by a energy hogging incandescent) to start my MBP each weekday, then sleep it three minutes later in case I decide not to use it. This is useful in that it cuts 30 seconds out of the startup/login process, but it only takes the process halfway (it doesn't log in). I could enable auto login to complete the process, but then my password would be rendered ineffective, and others who occasionally use my laptop would have instantaneous access to my account and files. Is there any way I can auto login then promptly lock the computer and head back to the login screen? Is there a scheduling application I could use to do the same?

    Thank you. :)
    GR2345 :apple:
     
  2. live4ever macrumors 6502a

    Joined:
    Aug 13, 2003
    Location:
    Thunder Bay, ON
    #2
    You could create a script to run in your login items I believe the command to run in Terminal.app is:

    Code:
    security lock-keychain login.keychain
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    I've got a headless Mac Mini that was setup similar. I just use it as a media server, but still wanted some security. I have the account login automatically, but one of my login items is the screen saver, which is password protected. However it a person is ready for it they can just keep the mouse or keyboard going so the screen saver doesn't kick in. Not completely secure, but an option.

    I also turned up this Terminal command to take you to the login screen, just like you use fast user-switching.
     
  4. GR2345 thread starter macrumors newbie

    Joined:
    Mar 15, 2009
    #4
    Thanks live4ever and angelwatt, I got it working! :)
     

Share This Page