Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: How to reset Leopard back to the Setup Assistant' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: How to reset Leopard back to the Setup Assistant
Authored by: nevernot on Aug 05, '11 12:22:52PM

I was wondering if anyone has used this successfully in Lion. I've been using this for a few years now with great success but it looks like they changed the location or name of com.apple.DirectoryServices.plist from the command /bin/launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist & . Anyone know how to proceed from here?



[ Reply to This | # ]
10.5: How to reset Leopard back to the Setup Assistant
Authored by: brewsta on Dec 20, '11 01:03:32PM
$ mount -uw /
$ rm -R /Users/USERNAME/
$ /bin/launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
$ dscl . -delete /Groups/admin GroupMembership USERNAME
$ dscl . -delete /Users/USERNAME
$ rm /var/db/.AppleSetupDone
OPTIONAL STEPS HERE:
$ rm -R /Library/Caches/*
$ rm -R /System/Library/Caches/*
$ rm -R /var/vm/swapfile*
$ shutdown -h now
THESE WILL PROBABLY TRASH YOUR SYSTEM, SO IF YOU SEE THEM RECOMMENDED, DON'T DO THEM:
$ rm -R /Library/Preferences/
$ rm -R /Users/USERNAME/
$ rm -R /Library/Logs
$ rm -R /var/log
Apple's Knowledge Base entry for using DSCL in Single User Mode under Lion:
http://support.apple.com/kb/HT4749

Note: When running dscl(1) from Single User mode, you'll see this message:

launchctl: Couldn't stat("/System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist"): No such file or directory nothing found to load
This message can be safely ignored.


[ Reply to This | # ]
10.5: How to reset Leopard back to the Setup Assistant
Authored by: nevernot on Dec 22, '11 06:11:39AM

Thanks for the reply! I noticed the dscl error and kinda freaked out a bit. I've been doing basically the same process through the gui with decent results but it's way more time consuming. You are correct about deleting /Library/Preferences though, it seems the keyboard maps are in there now because if you delete it the setup assistant doesn't progress past that section. Thanks again



[ Reply to This | # ]