Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding corresponding encrypted file on encfs

Hopefully a very simple question.

I have a read-only mount, and a encfs FUSE mount reads over that to decrypt the files. How do I know which encrypted file each decrypted file relates to?

For example: I want to delete a file, however won't be able to do that via the read-only filesystem. How do I know the true filename?

I am possibly looking for a more programmatic way of doing this

like image 526
Marcus Hughes Avatar asked Jul 08 '15 20:07

Marcus Hughes


1 Answers

I found this is possible encfsctl. You can use encode function to turn the human readable name into the real path on the filesystem.

$ ENCFS6_CONFIG='encfs6.xml' encfsctl encode /encfs/mountpoint readable/name/in/mountpoint
EncFS Password: 
decryptedname

http://manpages.ubuntu.com/manpages/hardy/man1/encfsctl.1.html

like image 62
Marcus Hughes Avatar answered Oct 19 '22 08:10

Marcus Hughes