Skip to main content
Solved

Auto-login of local account.

  • May 16, 2012
  • 6 replies
  • 16 views

Forum|alt.badge.img+13

Hello,

I've been instructed to make a local account on a small group of Macs that I manage, and have that account automatically login at startup. I'm aware of how to create the accounts using Casper Imaging or Casper Remote, however, I can't seem to figure out how to get the account to login automatically. Is this setting available to be configured through a managed preference or a terminal command that can be scripted.

Thanks,

~Ted

Best answer by rockpapergoat

check it:
http://www.brock-family.org/gavin/perl/kcpassword.html

6 replies

Forum|alt.badge.img+13
  • Contributor
  • Answer
  • May 16, 2012

Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • May 16, 2012

Great! Thanks Nate!

~Ted


Forum|alt.badge.img+1

or you could just uncheck the disable automatic login box in the Security control panel & then select the account you want to auto log in in the Accounts / Users & Groups control panel. just sayin'....


Forum|alt.badge.img+31
  • Honored Contributor
  • May 17, 2012

This is a snippet from one of my post image script examples I posted here a long time ago

/usr/bin/osascript <<AppleScript
 tell application "System Events"
 keystroke "$local_stushort"
 keystroke return
 delay 3.0
 keystroke "$local_stupasswd"
 delay 3.0
 keystroke tab
 keystroke return
 end tell
AppleScript

Just fill in the variables and it will run at the login window, or at least it did as of 10.6.8.

Thanks,
Tom


Forum|alt.badge.img+13

here's a luggage makefile to produce a pkg that sets this autologin user:

https://github.com/rockpapergoat/luggage/tree/master/autologin

by the same token, you can handle this with a simple script as long as the account exists already, or do it when creating the account.


Forum|alt.badge.img+6
  • Contributor
  • September 7, 2018

Is this still possible to do in Jamf now?