Today after I restarted my Macbook Pro with OS X 10.6.5, my user account suddenly disappeared from the login screen. I therefore logged in using admin account and discovered that the user account is not appearing in system preferences as well. System preferences -> Accounts lists down only Admin and Guest accounts. I tried to create user account with the same name but it gave me an error saying user with same name exists already. When I tried to navigate to my user account using Finder and Terminal, it was showing my home folder but I could not view contents because of insufficient privileges. I could also not verify that my data is intact.
After spending some time on internet, I came across a solution following which I logged in using root user and removed /private/var/db/dslocal/nodes/Default/users/<username>.plist file. Then I restarted my Mac, logged in using admin and created user account with same name. This time, it didn't throw any error but to my utter dismay, my home folder is now replaced with new one with only one system specific file when I log in with this user account.
I have absolutely no clue what went wrong and how can I recover my data. Any thoughts / suggestions would be of great help!!
After spending some time on internet, I came across a solution following which I logged in using root user and removed /private/var/db/dslocal/nodes/Default/users/<username>.plist file. Then I restarted my Mac, logged in using admin and created user account with same name. This time, it didn't throw any error but to my utter dismay, my home folder is now replaced with new one with only one system specific file when I log in with this user account.
I have absolutely no clue what went wrong and how can I recover my data. Any thoughts / suggestions would be of great help!!