ecryptfs-recover-private does not find the crypted partition

Bug #1740691 reported by Bougron
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
eCryptfs
New
Undecided
Unassigned

Bug Description

Hello

When this command is used as follows:
    sudo -i
    mount -v /dev/sdXN /mnt
    ecryptfs-recover-private
she does not find anything. It's the same with these two codifications:
    ecryptfs-recover-private /mnt
    or
    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

Thanks

description: updated
description: updated
description: updated
Revision history for this message
Bougron (francis-bougron) wrote :

Hello

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
root@u16042:~#

 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" )

Regards.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.