So I removed the password of my user account and restarted. When I tried to login, a black screen showed up and took me immediately back to the login screen. Running Ubuntu 11.04 via LiveCD, I found the /home folder is owned by root, no idea if it has to do with that. I also checked the option to encrypt the user folder at installation, propably wasn't the best idea.

I can login with ctrl + alt + f1, when I then try to start x, it gives me the error message, that .Xauthority is missing. Now I wonder how I'd create that file, when I can't access my /home/user folder, because it is encrypted. It also tells me on login that I should run encryptfs-mount-private.


When you encrypted your user folder, you used the Ecryptfs program. Ecryptfs actually uses two different passwords to encrypt this folder. When you removed your login password, you needed to also change your Ecryptfs password. This protection exists to prevent root from tampering with the password of your encrypted directory. If you want to read more about Ubuntu and encryption, check out:


The problem with .Xauthority was likely caused by this Ecryptfs lockout. Try these suggestions, and reply if the .Xauthority problem isn't fixed by solving the lockout problem.

  1. To change the Ecryptfs password, try:

    ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase

    For more information, visit:


  2. The Ecryptfs tutorial is also very helpful. If you remember your Ecryptfs password, you may be able to use that live CD to access your directory using chroot:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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