
A little HowTo instructions for removing a temp user account and reseting the system to the Apple Mac OS X Setup Assistant. A perfect use for installing extra software on a machine but allowing a user to pick their own user name and password while being able to enjoy a new system.
A word of caution: While in single user mode you will be able to make changes and delete files from the system that you would normally not be able to see or delete without some effort through the Finder.app or when logged in as another user.
boot/reboot the machine and hold Apple(cmd)+s. This logs you in as root in single user mode. Run the following commands replacing `[username]` with the temp account name used to setup the system:
/sbin/fsck -fy
/sbin/mount -uw /
rm /var/db/.AppleSetupDone
# New for 10.5 (no more netinfo)
rm /var/db/dslocal/nodes/Default/users/[username].plist
rm -r /Users/[username]
shutdown -o now
# or type `reboot` if you want to check the systemboot/reboot the machine and hold Apple(cmd)+s. This logs you in as root in single user mode. Run the following commands replacing `[username]` with the temp account name used to setup the system:
/sbin/fsck -fy
/sbin/mount -uw /
rm /var/db/.AppleSetupDone
rm -r /var/db/dhcpclient
rm -r /var/db/netinfo
rm -r /var/db/samba
rm -r /Users/[username]
shutdown -o now
# or type `reboot` if you want to check the system