LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   EncFS failure (NFS export of a reverse encfs mount) (https://www.linuxquestions.org/questions/linux-software-2/encfs-failure-nfs-export-of-a-reverse-encfs-mount-876393/)

Skaperen 04-21-2011 02:22 PM

EncFS failure (NFS export of a reverse encfs mount)
 
I have an NFS share hosted at a file server for several machines. I set up an encfs encrypted file tree in this. First, I created a directory in the NFS mounted tree where I wanted the encrypted files to be store (/home/nfs/phil/private). Second, I created a mount point where I wanted to access those files in the clear view (/home/phil/nfs-phil-private). Third I mounted encfs with the simple command "encfs /home/nfs/phil/private /phil/nfs-phil-private". During this mounting, it asked me for a pass phrase to encrypt the files with. Fourth, I copied some files into "/phil/nfs-phil-private". I saw that files with cryptic names were created in "/home/nfs/phil/private", along with a file named ".encfs6.xml".

That was on one machine named "lorentz". Then I switched to another machine named "euler". I created the same mount point here (/home/phil/nfs-phil-private). I verified that /home/nfs/phil/private already existed, as did "/home/nfs/phil/private.encfs6.xml". So I tried the same "encfs /home/nfs/phil/private /phil/nfs-phil-private" command. This time it failed. Here is all the output up to the first prompt:

Code:

15:05:23 (FileUtils.cpp:375) Archive exception: stream error
15:05:23 (FileUtils.cpp:326) Found config file /home/nfs/phil/private/.encfs6.xml, but failed to load
Creating new encrypted volume.
Please choose from one of the following options:
 enter "x" for expert configuration mode,
 enter "p" for pre-configured paranoia mode,
 anything else, or an empty line will select standard mode.
?>

The first two lines certainly appear to be some kind of error. I can cat the .encfs6.xml files just fine, so I do have permission to read it. It had not even prompted me for a password, yet. Anyone know what the deadl with this is?

A possible cause is that the first encfs is version 1.6.1 (ubuntu 10.10 packaged as 1.6.1-1) and the second encfs is version 1.5.2 (ubuntu 9.10 packaged as 1.5.2-1).

Is this version discrepancy the culprit?

Cotun 04-29-2011 01:45 PM

This link should assist you.

http://www.bramschoenmakers.nl/en/node/598

It seems the version discrepancy is definitely the issue. Hope this helps.

Skaperen 04-29-2011 01:51 PM

Quote:

Originally Posted by Cotun (Post 4341030)
This link should assist you.

http://www.bramschoenmakers.nl/en/node/598

It seems the version discrepancy is definitely the issue. Hope this helps.

Ah, so it's really an issue in boost. The funny thing is, I was just this morning contemplating forking the encfs project. And part of what I thought I'd do with it is to eliminate boost altogether, just storing the information in plain text.


All times are GMT -5. The time now is 08:17 PM.