Enable Guest account and set as default login user via CLI
I'm deploying an image to several iMac kiosk style machines in a University setting. I want to use an existing image, which does not have the Guest account enabled, or have an automatic login setup.
Using a post-deployment configuration script which I run at first boot after deployment using a LaunchDaemon, I've tried to accomplish this by doing the following:
1) Took a copy of /var/db/dslocal/nodes/Default/users/Guest.plist from a machine already configured to have Guest account enabled, and copy it into place on the newly imaged machine. This should enable the Guest account, no? Command: +tar -C /var/db/dslocal/nodes/Default/users/ -xzf ${filesDir}/Guest.plist.tar+
2) Set the autologin user to use "Guest". Command: +defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser Guest+
Since the "Guest" account should not have a password, I figure copying a new version of /etc/kcpassword into place is not necessary.
After attempting this, computer boots up to normal loginwindow, requiring a username and password. Additionally, the "Guest" account cannot login with no password.
I'm guessing that the appropriate way to enable the Guest account is with a series of dscl commands, rather than stupidly copying a version of Guest.plist into place on the destination machine.
I've googled all over and been unable to find a solution to this. Can anyone help?
Thanks!
Message was edited by: ehzastrow
iMac7,1 through 10,1, Mac OS X (10.6.6)