Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I've tried to setup an autologin, but that isn't possible, because my home is encrypted. What are the reasons for this?

PS. Here I have described my problem:

share|improve this question
up vote 15 down vote accepted

The problem is that your password is required to unwrap the mount passphrase used to decrypt the eCryptfs home directory. Without that, it's not possible; the system doesn't have the encryption key yet.

These login styles are mutually exclusive; you can either automatically log in (thereby letting anyone with physical access to your computer be able to access your data), or you can encrypt your home directory (keeping things encrypted and safe from access without a passphrase), but not both.

share|improve this answer
Basically: if you want to keep something secret, you have to provide a secret to access it. – JanC Nov 3 '10 at 23:22
and if i want to keep it secret only sometimes? For example: only on holidays/trip. At home, i don't need it secret... – cupakob Nov 4 '10 at 6:55
Question originally answered at:… – Dustin Kirkland Feb 7 '12 at 15:18
@cupakob: If you want to have an autologin and an encrypted directory you can encrypt just a sub-directory of home as described for example here: – pabouk Feb 23 '15 at 12:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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