10.5 Leopard – How to Reset Back to Setup Assistant

In: Apple

26 Jan 2008

This procedure is handy if you are wanting to make a computer appear as it first came out of the box. It is useful if you plan on reselling your computer or are preparing a generic image with some modifications for mass deployment in a large organization.

Here are the Terminal commands to delete a single existing account in single-user mode on Leopard (in the following commands, replace username with whatever account short name you created for your existing account). These commands must all be done in single user mode (hold Command+S during boot).

First the normal things you always do when first entering single user mode:

$ mount -uw /
$ rm -R /Library/Preferences/
$ rm -R /Users/username/

Now you perform the steps that resets the computer and makes the Setup Assistant appear upon first boot:

$ rm /var/db/dslocal/nodes/Default/users/username.plist
$ rm /var/db/.AppleSetupDone

Comment Form

About this blog

This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.

Web Hosting Discount

    Get the first month for only $0.01 using coupon code HGCOUPONBLOG. No contracts, cancel anytime.
  • Ian S: Yes, I agree, this solution works well for installing the 'missing' adobepdf.dll on Vista OS. Thanks [...]
  • ChrisG: Absolutely fantastic! Thanks for providing this fix, worked like a charm! [...]
  • Roberto Pensa: That was a great help! After googeling almost five hours and reading scilly advises I found your ver [...]
  • Scrittore: Wow - I've been struggling to find a way to get A8 Pro to load in Win 7 and coming up empty-handed.. [...]
  • Chris Troutner: Yes! This was exactly the information I was looking for. My ISP decided to block port 22 and told me [...]

Revolutionary One Time Password Device

Add to Technorati Favorites