OS X autologin enabler utility based on script from osx-vm-templates
brew tap xfreebird/utils
brew install kcpassword
To enable OS X autologin for user:
enable_autologin "username" "password"
You also can create /etc/kcpassword
file with the password, enable_autologin
script invokes this command:
enable_autologin "password"