Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to delete ALL accounts in preparation to sell computer?

I'm selling a Mac (five of 'em actually), and after doing a fresh OS (Tiger v10.4.3) install, followed by all system and app updates, I now want to delete all user accounts and traces thereof -- after I have cash in hand, of course. This so the Apple Setup Assistant starts on boot, and the buyer gets a fresh machine, including the lovely "Welcome to Apple" video/music extravaganza.

I know I've read instructions for doing this somewhere, but can now find no trace of them. Any help would be appreciated.

iMac iSight 20" Mac OS X (10.4.3)

Posted on Dec 6, 2005 9:32 PM

Reply
Question marked as Best reply

Posted on Dec 6, 2005 11:59 PM

From a note at MacOSXHints on how to "Make OS X re-run the initial setup assistant":

1.Boot into single-user mode (command-S during startup)
2. Once the command-line prompt appears, type the following:
mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
exit

When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not.


Using that as a basis, then in your case, since you've installed the OS, you should only have one user, boot each machine with a bootable external FWHD (or mount each to a good machine in TDM), launch the Terminal app, and then do these commands:

sudo cd /Volumes/<machine's name>/private/var/db/netinfo/
sudo mv local.nidb local.nidb.old
sudo cd /Volumes/<machine's name>/
sudo rm -R /Users/<username>
sudo rm ../.AppleSetupDone





G4 450 MP Gigabit Mac OS X (10.4.3)
11 replies
Question marked as Best reply

Dec 6, 2005 11:59 PM in response to SiPodder

From a note at MacOSXHints on how to "Make OS X re-run the initial setup assistant":

1.Boot into single-user mode (command-S during startup)
2. Once the command-line prompt appears, type the following:
mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
exit

When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not.


Using that as a basis, then in your case, since you've installed the OS, you should only have one user, boot each machine with a bootable external FWHD (or mount each to a good machine in TDM), launch the Terminal app, and then do these commands:

sudo cd /Volumes/<machine's name>/private/var/db/netinfo/
sudo mv local.nidb local.nidb.old
sudo cd /Volumes/<machine's name>/
sudo rm -R /Users/<username>
sudo rm ../.AppleSetupDone





G4 450 MP Gigabit Mac OS X (10.4.3)

Dec 7, 2005 2:18 PM in response to Michael Conniff

One problem with this is that 'cd', being a builtin, will not work with 'sudo'. Just do a plain 'cd' instead, the permissions will allow it.

Hmmm! Thanks, I didn't know that—never tried it. If that's the case, then eliminate sudo from the sudo cd entries.

Personally I would just do this in Single User mode

But, when you exit from Single User mode, doesn't this boot into the machine and bring up the setup assistant, defeating resetting it?

Dec 8, 2005 9:52 PM in response to SiPodder

Hello all,

I usually suggest yet another way to "do this deed:"

1. First, enable the root account, then log in as root.

2. In the root account, drag the entire contents of the "Users" folder to the trash and empty it. Use "Secure Empty" if you like (and wait a while...).

3. Immediately restart into Single-User mode. Remove the current NIDB and AppleSetupDone file.

4. Finally, type:

<pre style="overflow:auto; font-family: 'Monaco'; font-size: 10px">sync;sync;sync</pre>

and press <RETURN>. This will allow you to simply power the machine off, safely. When the new owner starts it up for the first time, it will boot directly to the Setup Assistant.

Scott

Dec 8, 2005 11:16 PM in response to Scott Radloff

And that may well work. I, for one, would never advocate enabling the root account (especially in a general discussion forum), since I think only power users should muck around at that level. I especially don't advise it without explicitly giving the commands. E.g., Remove the current NIDB might make sense to a Unix guru, but would fluster a normal GUI user. Specifically, it should be remove the existing NetInfo database and you should point out the exact command and path to do that little trick.

Just my 2¢.

G4 450 MP Gigabit Mac OS X (10.4.3)

How to delete ALL accounts in preparation to sell computer?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.