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
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.
Share
Categories
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...
Add a Comment
this might make sound like a dumb ass but how do you get the sans bullets when in that mode? yes i am new to mac...
September 19 2008 at 9:32 AM Report abuse Permalink rate up rate down ReplyI'm gonna try this on the Mac's at my school :D
September 05 2008 at 2:38 AM Report abuse Permalink rate up rate down ReplySo, um... what's to prevent someone from doing this to my Mac and gaining full control over my system? Isn't this a pretty significant security problem?
September 02 2008 at 6:49 PM Report abuse Permalink rate up rate down ReplyWhen there's physical access to a computer, there's no such thing as complete security.
Leopard:
command-s
mount -uw /
ls users
passwd shortusernamehere
Tiger:
command-s
mount -uw /
sh /etc/rc
ls users
passwd shortusernamehere
Why the heck are you creating an admin user to change a password when you can do it IN single user mode for ANY account?
Here's an easier way to shutdown -h now:
halt
Props to FH for that one.
If you're worried about accidentally rm'ing the wrong file, why not simply mv it to a backup location instead?
September 01 2008 at 4:57 PM Report abuse Permalink rate up rate down Reply"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." --TUAW
How are you going to change the password on the old account if you don't know the old password? And if you do know the old password, the whole exercise is unnecessary; the password is easily changed in the Accounts pane of System Preferences.
Because when you're booted into single-user mode, you already have root privileges and can reset the login password for any account, including an administrator's.
You can't, however, access keychains (or, by extension, FileVault home directories) without having (and knowing) a master password.
Um, sorry, what I meant to say was:
The account you create using this process is an administrator, and so can change the passwords of other accounts without knowing the old password.
(My comments regarding keychains and FileVault still applies, though)
Guys, I need help urgently. I ran the umount command in the terminal while logged in, and now the computer will not boot.
"If you in Terminal, don't do the mount thing though... just the rm command." I did that and now it won't boot, please help. How do I fix this?
Thanks a lot.
It is a Macbook Pro with OSX 10.5 Leopard
Thank you.
Wait... what?
Are you blaming me? OR did you wish you saw that before you did it?
I didn't think it was possible to run the mount command while logged it...
Try booting from the DVD and going to disk utility and check to see if your hard drive is mounted... if its not, click it and click mount.
As before mentioned, the flag to shutdown is -h.
You can speed things up, by entering
shutdown -r now
to reboot, or just type
reboot instead.
I presume this was a computer on which you did not know the current admin user's password? Because otherwise this is a lot more trouble than just creating a new user in System Preferences and ticking the "Allow user to administer this computer"
September 01 2008 at 12:53 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Philips Fidelio Primo Speaker Dock for iPhone / iPod for $320 + $6 s&h
- Refurb iHome iH120 Portable Alarm Clock w/ iPod Dock for $18 + free shipping
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
- Philips wOOx Alarm Clock Radio for Apple iPod / iPhone for $60 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



23 Comments