1 Reply Latest reply: Jan 22, 2013 6:18 PM by BobHarris
allstarfung Level 1 (0 points)

I am trying to help a friend get their data off of an iMac with a failing hard drive. My friend does not remember the login in information so I went through some tutorials. I logged into single user mode and ended up trying to bypasss the admin login screen using this command rm /var/db/.AppleSetupDone. I tried to setup a new admin acct but the system hangs on the wireless/internet setup part. Now she calls me and tells me that she has the login information, the only problem is that everytime I start the computer it takes me through the setup and I have no way of getting to the login screen.


Is there any command that will get me to load up the login screen?

iMac, Mac OS X (10.5)
  • BobHarris Level 6 (17,699 points)

    How about going in via single user mode and adding /var/db/.AppleSetupDone.  You will have to do the same tricks to make the disk writable.


    /var/db/.AppleSetupDone will look a bit like:


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd">
    <plist version="1.0">
                    <string>+1 (null)</string>


    where you provde the xxxxxx values with the answers to quesitons the setup script would have provided.


    After creating the file set the permissions as follows:


    /bin/chmod 600 /var/db/.AppleSetupDone

    /usr/sbin/chown root:wheel /var/db/.AppleSetupDone

    /bin/ls -l /var/db/.AppleSetupDone

    -rw-------  1 root  wheel  - 780 Dec  2  2011 /var/db/.AppleSetupDone