Advertisement

TUAW Tip: Create an OS X admin user without a disc

Recently, I had to create a new admin user on an older 500mhz Power Mac G4 running OS 10.3.9. Needless to say, there was no 10.3 install discs to be found. What to do? Follow these simple (but powerful) steps.

First, restart the Mac while holding down the Command and "S" keys to start in Single-User Mode. Next, you'll see the UNIX boot sequence in white text on a black field. Don't worry, that's what we expected. At the prompt, type the following commands, hitting "Return" after each.

  • mount -uw /

  • rm /var/db/.AppleSetupDone

  • shutdown /h now

Please be sure to type these commands exactly as presented here (sans bullets). "rm" is a powerful little command and if the syntax isn't right, you might unintentionally delete something important. Next, your machine will shut down. Turn it back on and you'll see the "Welcome to OS X" video, and be prompted through the process of creating a new admin user.

Other users on that machine -- including other admin users -- will remain intact. This is also a good way to change the password on an older admin account without the disc. Simply follow the same steps and, once you've logged in with the new account, change the password on your old account. Then, log in as the old account and delete the new one.