Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The problem I have is that I use eCryptfs to encrypt a user's home folder, but in order to decrypt it the user must have a password. However, after I encrypt the home folder, I would love to change the user's password, especially make it a user having no password. In this circumstance, I am not able to log in via that user's account because of the password difference. What I would like to do is to change the user's password with no problem or be able to encrypt his folder even if the user has no password.

share|improve this question
2  
I don't believe that is possible. To encrypt the home folder, it uses your password as a key. If you don't have a password, then you would have a blank key, meaning there would be no encryption. This would be like having a locked door that automatically opens whenever anyone walks up to it. What's the point? –  reverendj1 Jul 24 '12 at 19:53

1 Answer 1

You can't have an encrypted home for a user without a password as this defeats the entire purpose of encryption.

However, you can change the password for the user when the home is already encrypted. The thing is, you can't do this from another user account with root privileges.

The files are encrypted with a key that is stored on the hard drive. This key is then encrypted with the user's password. Even if you have root access, you will still need to use the old password.

The solution is to have the user change the password without any elevated privileges.

  1. Login to the user account.
  2. Open "System Settings".
  3. Click "User Accounts".
  4. Change the password from there.
share|improve this answer

Your Answer

 
discard

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.