Skip to content

Instantly share code, notes, and snippets.

@gotunandan
Created June 20, 2014 10:49
Show Gist options
  • Save gotunandan/1e93869f4f77ae925b53 to your computer and use it in GitHub Desktop.
Save gotunandan/1e93869f4f77ae925b53 to your computer and use it in GitHub Desktop.
#!/bin/bash
### Run as root (or with sudo)
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser testuser
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUID 504
cp -v kcpassword /private/etc/kcpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment