GEncfsM 1.6 is a rather heavy update especially directed towards power users. It is possible to run commands at specific times and you can now use arbitrary encfs /encfsctl / fusermount binaries. It is possible to change the mount base directory and the recognized encfs config files. I did lots of refinements in the create and import dialogs as well. As an ordinary user you (probably) shouldn't see much difference though.

The most obvious addition is the "Advanced..." button inside the "Configure stash" window, which opens the "Advanced stash configuration" dialog.
adv_stash_config

The purpose of this window is to let the user quickly edit some variables, which is quite a contrast to the rest of the program. Note, that you can use environment variables inside the commands. E.g. if you want to open the file-manager after the stash is mounted, you can set the variable "post_mount_command" to "nautilus $HOME/Encfs/sdcard". The variable "additional_encfs_options" allows the injection of arbitrary encfs command line options. I am not entirely sure, how useful the other variables will be (yet), but I could imagine e.g. encfs wrapper scripts if you want to do something really special or even an ecryptfs wrapper script. "encfs_bin" is your friend here. All that GEncfsM does in the end is running the executable and then writing the password to stdin. If you want to dig into that area, I'd really like to get some feedback.

The encfs configuration files, that are recognized by GEncfsM are stored in the key "encfs-config-files" inside "/com/libertyzero/gnome-encfs-manager" in dconf-editor. The "mount-dir-base" key specifies the directory in which the mount points are created if you don't like them inside "$HOME/Encfs".

The stash creation and import dialogs now try to avoid name clashes and enforce unique mount and stash directories.

There are also some minor fixes and improvements in most of the other components, so I hope you'll love GEncfsM even more with this new release :-)

Example wrapper script
#!/bin/sh

# 0: success; 1: error
exit_code=1

echo "encfs6.xml:  $ENCFS6_CONFIG"
echo "args:        $@"

read password
echo "password:    $password"

crypt_dir="$2"
mount_dir="$3"

# do something

exit $exit_code

11 Responses to “Gnome Encfs Manager 1.6 features lots of sparkly gems”

  1. Marcelo
    April 15th, 2013 at 21:10
    1

    “Thank you for this most awesome application ever”
    Really: thank you for your generosity. Great software (I can encrypt files and save them using UbuntuOne having them available on multiple machines, all in a very simple setup).

  2. tau
    May 25th, 2013 at 15:31
    2

    Thanks a lot, Gencfsm does everything I need and works fine!

    I use it to keep my configuration files (ftp accounts, etc.) in an encfs-protected folder, and thanks to the automount feature I don’t have to enter my password each time.

    However when mounting the stash at startup the system freezes for a second or two, so I was wondering if you can add a “delayed start” feature in a next release, so that Gencfsm lets the desktop load fully before starting. Thanks anyway.

  3. Moritz
    May 27th, 2013 at 19:59
    3

    If you want to add a startup delay, you can change the startup command in the autostart file from “gnome-encfs-manager” to “sh -c ‘sleep 2; gnome-encfs-manager'”.
    You can either edit the file directly (~/.config/autostart/gnome-encfs-manager.desktop) or edit the command in the Gnome “Startup Applications Preferences”.

  4. tau
    May 28th, 2013 at 10:40
    4

    Thanks a lot for your help!

  5. DA
    July 20th, 2013 at 17:27
    5

    Moritz –

    My difficulty is that importing a stash that _already_ has the .encfs6.xml file stored in an alternate location still seems impossible (?) As far as I can see, I will have to recreate it, which is a headache when it’s on a server given that I’ll have to upload again.

    Thanks agin!

  6. Moritz
    July 21st, 2013 at 21:55
    6

    In GEncfsM 1.8.3 (or already in the version in bzr), this will be as easy as doing a
    gnome-encfs-manager import_stash ~/xxx/.secure ~/secure ~/.encfs/xxx.encfs6.xml
    on the command line.
    It is possible the import the stashes in 1.8.2, but it is very hackish. You could create the file encfs6.xml inside the stash (using touch or whatever), then import it into GEncfsM and then delete the file again. Then adjust the path to the config file in the advanced stash configuration. However, I’d highly recommend to either wait a few days until 1.8.3 is ready or build it from source from bzr (or use the packages at https://code.launchpad.net/~gencfsm/+recipe/trunk if you are on Ubuntu raring or saucy).

    Regards, Moritz

  7. DA
    July 22nd, 2013 at 06:08
    7

    Excellent! I’m on Ubuntu Precise, so I’ll wait. (Don’t want to use the hackish approach, as I don’t want the key file on the server.)

    This will _clearly_ be the be-all and end-all of EncFS management!

    (Now, I just need it on the iMac at work. ;) MacPorts?)

  8. Moritz
    July 22nd, 2013 at 07:15
    8

    Version 1.8.2.4 is now building in the release ppa since the step to 1.8.3 is mostly testing on lots of distributions and fixing some rough edges. Have fun trying it and report back if everything works as expected.

    Regards, Moritz

    (PS: The hackish approach doesn’t need the real key file. Even an empty file that is recognized as a config file would work.)

  9. Peter
    October 23rd, 2013 at 18:34
    9

    Hi Moritz and thanks for that piece of software!

    Especially pre/post_mount/umount variables rock for my setup. But…
    I have GEM on 3 computers setup to mount one “private data folder” synced via U1 and another “shared data folder” also synced each (as a side note, so I can easily share stuff with people and still it’s encrypted yet easy to use). Now comes the nifty bit. I want to use bindfs to “link and sync” (mount) the desktop folder only while the “parent” encrypted private folder is mounted via encfs (content of ~/Desktop is actually in ~/.private/Desktop). So I used post_mount_command=”$HOME/.bin/’scribt with bindfs cmd’.sh” (liturally everything with “” incl ‘ since there are spaces in the path). But it only works on one computer for 1 of 2 users.

    Can you give me a hint where I could start debugging, please?

    Cheers

  10. Peter
    October 23rd, 2013 at 18:37
    10

    oh, btw, everything works as expected when I execute the scripts (also the fusermount -u one for pre_umount) from cli

Leave a Comment

I respect your privacy
I don't run any trackers on this site.

Your questionable browsing-history should remain between you and the NSA ;-)
Contact