Temporary Auto login user

bpavlov
Honored Contributor

Before I expend some brain power I'm posting here in hopes that maybe someone has already done this and perhaps would be willing to share the code.

I would like to reproduce a temporary auto login on first boot similar to how Casper Imaging does it with the temporary adobe install user.

I imagine the steps involved would be:
create a launch daemon that launches a script
script creates a user that auto logins
(actions take place here, could probably make another post on this, but for now I need to focus on just this one thing)
script detects when autologin user is no longer needed and deletes user account, launchdaemon and the script itself

I haven't had time to examine what Casper Imaging is actually doing yet. Normally I would have done this but like I said I'm hoping someone may have already done this and can provide some more details.

1 REPLY 1

bentoms
Release Candidate Programs Tester

@bpavlov If you amend the loginwindow.plist & create a kcpasword file in /etc/ it should auto login as that user.

CreateUserPKG can do that for you.. Then post running what you want, delete the kcpasword file & the user account.