Results 1 to 3 of 3

Thread: Encrypted Home - Password Reset?

  1. #1
    Join Date
    Aug 2008
    Beans
    255
    Distro
    Xubuntu 11.04 Natty Narwhal

    Encrypted Home - Password Reset?

    Hi, just in theory, if I have an encrypted home directory, could I reset the password using a livecd and therefore read all the encrypted items within my home directory?

    Apologies if this is a simplistic view of a complicated question, just trying to understand encryption a little better.

    Chriss

  2. #2
    Join Date
    Sep 2010
    Beans
    898

    Re: Encrypted Home - Password Reset?

    Booting from a LiveCD, or through recovery (single-user) mode, you can reset the login password, but that will not decrypt the files.

    Decrypting the files requires access to the ecryptfs passphrase, which is itself encrypted (wrapped) with the old login password.

    If you change your login password in that manner, you would need to use ecryptfs-rewrap-passphrase to rewrap the passphrase with the new password; this requires knowing the old password:
    http://manpages.ubuntu.com/manpages/...sphrase.1.html

    That's why you need to keep a backup of the (unwrapped) passphrase. Otherwise, if you lose your login password, you would have no way of decrypting the files.
    Last edited by Dave_L; March 2nd, 2011 at 11:35 PM.

  3. #3
    Join Date
    Aug 2008
    Beans
    255
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Encrypted Home - Password Reset?

    Brilliant, thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •