Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-24-2008, 01:00 AM   #1
k0rubi
Registered User
 
Join Date: Jan 2008
Posts: 2
Leopard: Removed the /var/db/.AppleSetupDone File, how do I reverse this?

So I tried to get the Mac to rerun the setup so we could establish another administrator account. I booted the Mac into Single User Mode (apple+S at startup), however when I removed the flag file (rm -rf /var/db/.AppleSetupDone) and prompted the computer to reboot, it gets stuck at the loading screen. When I logout through Single User Mode, it is telling me that the root account cannot be found.

I don't think it makes a difference, but just to be sure - before this was done, the computer was rebooted with the OS X 10.5 CD in the drive and I ran the Password Change Utility and changed the System Administrator (root) password. You (Katelyn) put in your own password. The setup was ended and the computer was restarted - and it booted fine. The problems only arose after the flag file was removed.

Here is a quote from the MacWiki I used:
http://www.macshadows.com/kb/index.p...ol_of_Mac_OS_X


"System Setup Re-Run Administrator

If you don't have enough time or simply want to create an easy, visible admin account, use the following steps. This has been known to work on all versions of Mac OS X.

The initial System Setup wizard that runs when your Macintosh has had a fresh install creates an Administrator account by default. Since that is all that this utility does, we can force the utility to run again and create a brand new account.

1. Enter single user mode (see above). Once in single user mode, check the filesystem and mount the hard drive.

fsck -y

mount -uaw /

2. All we need to do now is remove a flag file from the system

rm -rf /var/db/.AppleSetupDone

3. Now reboot

reboot

Upon reboot, your machine will run through the system setup wizard. Note that if you are trying to be inconspicuous, you may want to turn down the volume or plug in headphones."

Basically I need to know how I can get the Mac to find the root user so the computer boots up properly.

How? D:
k0rubi is offline   Reply With Quote
Old 01-24-2008, 03:19 AM   #2
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
There is no need to rerun Setup to create another Administrator account. Simply open the Accounts preferences (Apple menu -> System Preferences), unlock the preferences and create a new account. You will have the option to make that new account an Administrator account.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 01-24-2008, 03:41 AM   #3
k0rubi
Registered User
 
Join Date: Jan 2008
Posts: 2
@ Las_Vegas:
I don't need to know how to make a new Admin account at this point, I need to know how to reverse the removal of the flag file so that the computer will actually boot up into the OS instead of being stuck at the loading screen.

I need it to find how to get the root user to be recognized or something...
k0rubi is offline   Reply With Quote
Old 01-24-2008, 08:49 AM   #4
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,361
This is what mine looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
I don't know if this will work, but you could boot into single user mode and type these commands:

Code:
mount -uaw /
cd /var/db
echo '<?xml version="1.0" encoding="UTF-8"?>' > .AppleSetupDone
echo '<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' >> .AppleSetupDone
echo '<plist version="1.0">' >> .AppleSetupDone
echo '<dict/>' >> .AppleSetupDone
echo '</plist>' >> .AppleSetupDone
cwtnospam is online now   Reply With Quote
Old 01-24-2008, 04:37 PM   #5
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
You can enable the ROOT account by booting the OS X Install DVD and select the Password change utility.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.