• On The Insider: Miley Cyrus in Sex and the City 2
advertisement
September 18, 2009 11:16 AM PDT

How to restore Lost home folder after logging in as guest in Snow Leopard

by Topher Kessler
  • Font size
  • Print
  • 2 comments
Share

Be aware that Snow Leopard seems to have a problem with how guest accounts are handled on systems that had them enabled before upgrading from Leopard. In several cases, people have accidentally logged in to their guest accounts and upon logging out and back into their normal accounts have found their data missing. We reported on this problem in the past, but here are some extra options for restoring the lost home folder from a backup.

This problem seems to be occurring with people who have had the guest account enabled for log-in before upgrading to Snow Leopard. After the upgrade, some problem with the account configuration can result in a non-guest account being cleared and reset the same way guest accounts are reset upon logout (See the latest Apple discussion post about this problem here).

So far this has not happened for computers where the guest account has been enabled after upgrading. As such, one preventative measure is to disable the guest account's ability to log in (and then disable the account altogether), and re-enable it so Snow Leopard sets it up instead of using the configuration that Leopard set up. I tested this out on my Snow Leopard upgrade (upgraded from 10.5.8 to 10.6) and the guest account worked as expected when enabled in Snow Leopard.

Additionally, if you do not need the guest account, just disable it. If you do need guest log-in functionality and do not want to take any chances, you can create a managed user account without a password to use instead of the guest account. Parental controls can then be used to apply extra restrictions to the account (the only main difference will be the account will not reset upon logout).

As for tackling the lost home folder problem when it has occurred, you will need to have a backup of your data. We strongly urge everyone to use Time Machine or a similar full system backup for this very purpose, and hopefully those who are affected have a recent backup handy. Here are the ways to restore your home folder from a backup:

Immediately restore the entire system

If this problem just occurred, and you have Time Machine running all the time, you should be able to restore your whole system installation to the most recent backup (within the hour). To do this, follow these steps:

  1. Boot from the Snow Leopard DVD (hold "C" at start-up with the disk in the drive).
  2. Select your language and choose "Restore from Backup" from the "Utilities" menu.
  3. Follow the onscreen instructions and be sure to select the most recent backup from the list of available restore points.
  4. Click "Restore" and wait for the procedure to complete (may take an hour or two).

After this process is completed, try disabling and re-enabling the guest account, or using the alternatives I suggested above.

Restore the home folder

You can restore the lost home folder from a backup without restoring the full system (though the first method is the most straightforward). To do this, follow these instructions:

  1. Create a new admin account in the "Accounts" system preferences (new name, new password).
  2. Log out, and log into the new account.
  3. Go to the /Macintosh HD/Users/ directory in the Finder and invoke Time Machine.
  4. Navigate back in time to where you can see the most recent intact home folder that was lost.
  5. Select and restore that folder to the Users directory using the "Restore" button.

    (Skip the following steps for the alternative method below.)

  6. Go back to the Accounts system preferences and right-click the account with the lost home folder, and choose "Advanced Options."
  7. Next to the "Home directory" field click "Choose" and select the restored home folder.
  8. Click "OK" and save the changes, and then log out of the new admin account.
  9. Log into the old account.

Advanced Account Settings: the option to choose a new home folder for an existing account.

(Credit: Screenshot by Topher)

An additional step to this is to ensure the old account is working properly. After step five above, where you restore the folder to the Users directory, follow these steps instead of the remainder of the steps in the above procedure:

  1. Go to the Accounts system preferences and delete the old account.
  2. Use the "+" sign to create a new account, giving it the same short and long names as the previous one, with the same password.
  3. If the system claims an old home folder exists with that name, select the option to use that folder.
  4. Check that the new account is using the old home folder by right-clicking it and in the "Advanced Options" check the home directory path (changing it as described above if it is different than that of the restored home folder).
  5. Log out and log back into the newly created account to test it.

This alternative procedure will ensure the old account is refreshed and started new, but keeping the data in it preserved. This will give it new user and group IDs, along with other unique identifier numbers that may have been in conflict with the "guest" account, resulting in the lost home folder upon logout of the guest account.



Questions? Comments? Post them below!!!
Be sure to check us out on Twitter and the CNET Mac forums.

Topher has been an avid Mac user for the past 15 years, and has been a contributing author to MacFixIt since Spring 2008. One of his passions is troubleshooting Mac problems and making the best use of Macs and Apple hardware at home and in the workplace.
Recent posts from MacFixIt
Recreate trash folders to fix trash problems
Preview: Batch resize images
Finder scrolling or icon resizing choppy?
Password issues? You may need to reset your keychain
Weekly Utilities Updates and Review: Maintenance
Four unit conversion options in OS X
DNS security and performance considerations, and ISP alternatives
Apple releases Java updates for OS X 10.5 and 10.6
Add a Comment (Log in or register)
by aharris61 October 13, 2009 8:50 AM PDT
I upgraded to Snow Leopard on October 3. Prior to the upgrade, I had three accounts set up on my iMac: (1) my own Administrator account; (2) my wife's Standard account, and (3) a Guest account. After the upgrade, my Administrator account was fine. I never logged into the Guest account. However, my wife's Standard account began developing all kinds of problems. First, when logged into my wife's Standard account, Mail would not quit -- in order to quit Mail or to log-off or shut-down from my wife's account, it became necessary to Force Quit the Mail application. Second, all her contacts in Address Book disappeared. Third, Calendar became unstable and erratic when trying to send meeting invitations. I called Apple later in the day on October 3 to request assistance. After trying several things with no result, they emailed a program called Capture Data and asked me to run it while logged into my wife's account. It started running but never completed. The Apple tech asked me to let it run and then email it to him. It ran all night but never completed. I called Apple again and got another tech -- he asked me to move the Capture Data app into the Application folder and try again. He said if didn't complete within an hour to stop it and email both he and the original tech to tell them it didn't work. I let it run over 4 hours, but it never completed. I emailed both techs and requested additional direction. No response. I kept emailing the Apple techs all week, but got no response. Finally, on Saturday, October 10, (1 week after my original call), I got a call back from the original Apple tech telling me that his engineers had instructed him to instruct me to run the Capture Data program (which didn't work). I was not happy. I called Apple again and asked to be escalated. Finally got to someone who told me that it appeared my wife's account had been corrupted. He suggested I set up a new account and then move all her data over. I did set up a new account and then gave her new account full rights to access her old account's home folder and all sub-folders in order to import mail, calendar, iTunes library, iPhoto library, documents, etc., to the new account. It took several hours but I got it all moved over. Still couldn't get Address book from the current Home Folder, but i was ultimately able to restore her full Address Book from a Time Machine copy from the day before the Snow Leopard upgrade. Now everything works. I password protected my wife's old account to keep her from inadvertently accessing it, and will delete that old account and home folder in about a month after we have been assured that no additional data needs to be moved over. We never tried the Guest account, but upon reading this CNET article, I have disabled the Guest account and will not reenable it until after 6.2 comes out. I was very disappointed with AppleCare support in this matter, but since I got my wife's new account fully set up, I must say that Snow Leopard has been very fast, stable and even more user friendly. However, I am very leery about the support and it will be a long time before I broach the issue of getting another Mac to my wife (we need a laptop, but I am going to delay a couple months until she regains her good feelings toward the Mac).
Reply to this comment
by boksiora October 14, 2009 11:37 PM PDT
Hey Apple, why did you sell unfinished stuff to us.... Why do we have to encounter such huge problems with your software... you claim to have the best OS and whats that!
Reply to this comment

Navigate MacFixIt

  • Help
  • Archives
  • Utilities
  • Forums
advertisement

About MacFixIt

MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

Add this feed to your online news reader

MacFixIt topics