rm /var/db/.AppleSetupDone: No such file or directory

I am trying to bypass the admin setup on my powerbook g4 (2005) because it keeps freezing at the choose keyboard screen.


I looked up the tutorial using


mount -uw /

rm /var/db/.AppleSetupDone


The prompt says that there is no such file or directory, I used the ls -al /var/db, and I dont see it in the list that poped up.


Can anyone help me with this problem---or even the freeze on the choose keyboard?

PowerBook

Posted on Apr 9, 2013 3:26 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 12, 2015 9:55 AM

NOTE


In my experience with this, when I booted into recovery mode typing:


rm /var/db/.AppleSetupDone


Said the file didn't exist. When I rebooted, the setup screen didn't show. I logged in as the non-admin user, then looked in /var/db and the file DID exist.


Further investigation showed that in recovery mode, / references the OSX Recovery Partition, and not Macintosh HD partition. So if you boot into recovery mode and .AppleSetupDone doesn't exist in /var/db/, and the setup screen still won't show, do the following in recovery mode:


cd /Volumes

ls -l (This will show all volumes)

cd Macintosh\ HD

cd var/db

ls -la (You should now see a .AppleSetupDone file)

rm .AppleSetupDone


After this, reboot and you should see the setup screen.

21 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

rm /var/db/.AppleSetupDone: No such file or directory

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