ecryptfs-recover-private does not find the crypted partition

Bug #1740691 reported by Bougron on 2017-12-31
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description


When this command is used as follows:
    sudo -i
    mount -v /dev/sdXN /mnt
she does not find anything. It's the same with these two codifications:
    ecryptfs-recover-private /mnt
    ecryptfs-recover-private /mnt/home
It is absolutely necessary to do the exact codification like this
    ecryptfs-recover-private /mnt/home/.ecryptfs/ThePoorGuyWhoHasTrouble/.Private

Could you improve the software so that the auto-detection also works in this context.

It is the same thing form another user of the /home partition
   sudo -i
   ecryptfs-recover-private /home/.ecryptfs/MyFriend/.Private

Errror occurs in 16.04 17.04 17.10 and 18.4


description: updated
description: updated
description: updated
Bougron (francis-bougron) wrote :


It seems to me that line 45 of the script is mis-coded because of its return:

root@u16042:~# ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
find: «/run/user/1000/gvfs»: Permission non accordée

 I think the error message causes the script to end prematurely.

I suggest looking only in the most likely directories.

 dirs=$(find /mnt /home /media /tmp -type d -name ".Private" )


Mathias Bynke (mabynke) wrote :

This affects me in 18.04 after release as well.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers