Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] encfs; decrypted file contents garbled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Seron
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 293
Location: Malmö, Sweden

PostPosted: Thu Mar 17, 2011 12:48 pm    Post subject: [solved] encfs; decrypted file contents garbled Reply with quote

Decrypted folder displays file names correctly but contents are garbled.

I just created a new encrypted view, using default setting, like so:
Code:
encfs --reverse /source/dir /encrypted/view

This created a new .encfs6.xml in the source dir.

I then tried to mount the decrypted view in yet another dir, like so:
Code:
ENCFS6_CONFIG=/source/dir/.encfs6.xml encfs /encrypted/view /decrypted/view

This seem to work the first time. Both file names and contents look correct.

Subsequent mounts do not work correctly however. Unmounting and remounting seem to go well and the password is accepted. The files names look intact, but their contents are not.

Unmounting using umount or fusermount -u makes no difference.

Am I doing something wrong here?
_________________
man cannot be brave without being afraid


Last edited by Seron on Fri Apr 15, 2011 1:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Mar 20, 2011 10:19 am    Post subject: Reply with quote

Did you check dmesg? Maybe fuse has gone haywire?
Back to top
View user's profile Send private message
Seron
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 293
Location: Malmö, Sweden

PostPosted: Thu Mar 31, 2011 7:37 pm    Post subject: Reply with quote

dmesg doesn't report a thing. Actually when creating the encrypted view I'm using the --public flag. I wonder if it can have anything to do with it.

update: Actually the --public flag makes no difference.
_________________
man cannot be brave without being afraid
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Fri Apr 01, 2011 6:43 am    Post subject: Reply with quote

I think you are not the only one:

http://code.google.com/p/encfs/issues/detail?id=97&q=garbled
http://code.google.com/p/encfs/issues/detail?id=98&q=garbled

Perhaps you should consider using ecrypts?
Back to top
View user's profile Send private message
Seron
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 293
Location: Malmö, Sweden

PostPosted: Fri Apr 01, 2011 7:43 am    Post subject: Reply with quote

Those issue posts are my own. One being a double post by mistake.

Thanks for pointing out ecryptfs. I'll check it out.

Meanwhile if someone feels inclined to confirm this or the converse I would be grateful.
_________________
man cannot be brave without being afraid
Back to top
View user's profile Send private message
Seron
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 293
Location: Malmö, Sweden

PostPosted: Fri Apr 15, 2011 1:20 pm    Post subject: Reply with quote

This is a known problem in encfs 1.7.2 which is solved in 1.7.3. Current upstream version is 1.7.4. There's a request in Bugzilla for an update in portage, but for now 1.7.2 is the most recent version there.

I solved this by making a local overlay by just renaming the ebuild to 1.7.4.

See encfs project's issue list.
_________________
man cannot be brave without being afraid
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum