LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Decrypt <user> folder in /home - Ubuntu 14.04 (https://www.linuxquestions.org/questions/linux-security-4/decrypt-user-folder-in-home-ubuntu-14-04-a-4175519323/)

Danniel 09-18-2014 01:55 PM

Decrypt <user> folder in /home - Ubuntu 14.04
 
Hello, i am still a newbie in linux since i definitely quitted from Windows this spring, i use now two hard drives in my computer, one 3TB disk with Ubuntu 14.04 installed on it, and a 1TB disk with Linux Mint 17, which i bought recently.
The problem is that i cannot access to my user folder of Ubuntu 14.04 from Linux Mint, when i type "encrypted_mount_private" on the console it says:
<< Encrypted private directory is not set up properly.
I have also tried to access to it using Parted Magic but it's the same.
The question is, how can i have access to my user folder? since i know my username and password there should be no problem on having access to it, the only problem is that i don't know the way to decrpyt it.
Any kind of help would be so much appreciated.

Sorry if i posted this thread in the wrong section, since it's a problem with encrypted folder i think this is the correct place to post it. Thanks.

coralfang 09-19-2014 09:50 AM

This might help: http://www.kaijanmaki.net/2009/10/26...ncrypted-home/

The same method should apply to mounting it inside a different distribution.

Danniel 09-19-2014 10:29 AM

First of all, thanks for the reply coralfang, but i have one problem with that solution, i didn't write down the passphrase and now i can't get access to my Ubuntu 14.04 HDD because my screen goes black after i login. Isn't there any other way to decrypt the user folder with just my username and password?

coralfang 09-19-2014 03:37 PM

You can get the recovery key passphrase by running:
Code:

ecryptfs-unwrap-passphrase
When you boot into ubuntu, try logging into the console (for example: ctrl+alt+F2), and login. If you can get the key/phrase from that command, the other instructions should work.

The ecryptfs encryption key is generated randomly i believe (i don't think it's related to your user login's password).

Danniel 09-19-2014 04:18 PM

Thanks again coralfang, if i can make it works and i recover my data your help won't remain unrewarded.:hattip:

Danniel 09-20-2014 06:55 AM

2 Attachment(s)
Okay, the command found the passphrase file on my system and now i am just like this example:

http://www.linuxquestions.org/questi...1&d=1411213906

But now, how do i get the login passphrase?


All times are GMT -5. The time now is 01:24 PM.