Skip to main content
Solved

Auto login from CLI in 10.9

  • January 28, 2014
  • 4 replies
  • 16 views

Forum|alt.badge.img+9

Im trying to create an auto login user in 10.9.
It worked in 10.8 but doesn't seem to work in 10.9. I've created a pkg with the following files but no luck:
/etc/kcpassword
/Library/Preferences/com.apple.loginwindow.plist

I have also tried Per Olofsson's createuserpkg which creates the account but does not autologin the user.

Any ideas?

Best answer by myronjoffe

Used pkg with the following files: /etc/kcpassword
/Library/Preferences/com.apple.loginwindow.plist combined with MCX makes it work in 10.9

4 replies

Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • Answer
  • January 29, 2014

Used pkg with the following files: /etc/kcpassword
/Library/Preferences/com.apple.loginwindow.plist combined with MCX makes it work in 10.9


ega
Forum|alt.badge.img+17
  • Valued Contributor
  • June 10, 2014

Can you share the keys for loginwindow and MCX please?


Forum|alt.badge.img+7
  • Contributor
  • July 7, 2014

I would like to see your setup with the loginwindow.plist and your mcx. Thanks!


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • July 8, 2014

Im sorry it took so long to respond.

General:

Apply Setting To: System Level Enforced
Domain:/Library/Preferences/com.apple.loginwindow
Key:autoLoginUser
Value: svc-serviceacc

Definition:
Domain: com.apple.loginwindow
Key Name: autoLoginUser
Key Type: string