Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Last night, I wanted to shutdown my PC after using it, but when I clicked the power icon, a tiny empty box showed with nothing in it (i.e. there's not Shutdown option)

So I thought rebooting will fix it, so I typed in my Terminal:

shutdown -P 1

After one minute, the PC got hung for few seconds, and then it suddenly shutdown, without closing any programs or anything, it did shutdown abnormally

Later, I turned my PC on and I was surprised that my user account was deleted! Plus the background and other settings were set back to their defaults, however the Wi-Fi connected automatically without asking for the password, seems like it was saved

There's the login button with Username/Password fields, I am sure that I typed them correctly but it says invalid credentials

I can sign in as Guest, but I can't do anything administrative, my user folder is still in place, but I can't access it due to being Guest

I have Ubuntu 13.04, dual-boot with windows 8

share|improve this question

marked as duplicate by Web-E, Alvar, belacqua, Radu Rădeanu, Raja Aug 2 '13 at 15:52

This question was marked as an exact duplicate of an existing question.

    
what ubuntu version do you use? – Private Jul 25 '13 at 8:38
up vote 0 down vote accepted

If it is a duplicate of Can't login to my user account, here is what you have to do.

You have to change the ownership of .Xauthority so press Ctrl+Alt+F1 and try to connect. If you can't connect with yousef, try to connect as root (so as username gives it root and as password it might be the same than yousef). Then do

chown yousef:yousef ~/.Xauthority
reboot

and see if it has worked. You can also just delete .Xauthority using nautilus if you can login to graphical session (you can install other display manager such as GDM to login, the problem lies in LightDM), or you can delete it via the terminal

rm ~/.Xauthority
share|improve this answer
    
i have seen this question actually it didnt helped, it stil not working, the root password isnt neither root or my password – OverCoder Jul 25 '13 at 9:35
1  
How did you do it without begin connected ? You don't have the permission to do it from a guest account since you have no access to /home/yousef. If you go in recovery mode from grub you can reset the root password. – Benoît Legat Jul 25 '13 at 12:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.