Auto login from CLI in 10.9

myronjoffe
Contributor III

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?

1 ACCEPTED SOLUTION

myronjoffe
Contributor III

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

View solution in original post

4 REPLIES 4

myronjoffe
Contributor III

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

ega
Contributor III

Can you share the keys for loginwindow and MCX please?

krusej23
New Contributor

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

myronjoffe
Contributor III

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