Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Evolution pwd

  1. #11
    Join Date
    Dec 2009
    Beans
    121
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Evolution pwd

    I use something like that with thunderbird on one computer. $HOME/.thunderbird there is a symlink to an encfs-encrypted folder (can made like this) --
    Code:
    sudo apt-get install encfs zenity
    mkdir -p $HOME/Fuse/encr
    mkdir -p $HOME/Fuse/decr
    encfs $HOME/Fuse/encr $HOME/Fuse/decr
    mv $HOME/.thunderbird $HOME/Fuse/decr
    pushd $HOME; ln -s Fuse/decr/.thunderbird .thunderbird; popd
    fusermount -u $HOME/Fuse/decr
    I use a script that first launches zenity to pop up a password prompt box. Then the encrypted folder is mounted and thunderbird is started. When I close thunderbird, the encrypted folder is unmounted, and the script terminates. I do change the folder permission there, but that is only to prevent myself from launching thunderbird while the folder is not mounted. That way, thunderbird simply dies:

    Code:
    #!/bin/bash
    
    bah=$(zenity --entry --hide-text --title="EncFS Password" --text="Type in password.")
    chmod 755 $HOME/Fuse/decr
    echo $bah | encfs --stdinpass $HOME/Fuse/encr $HOME/Fuse/decr
    if [ $? == 0 ]
    then
       thunderbird
       sync
       fusermount -u $HOME/Fuse/decr
    else
       zenity --title="mount failed" --info --text="bad password" 0x0
    fi
    chmod 000 $HOME/Fuse/decr
    Last edited by DZ*; July 15th, 2011 at 02:41 AM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •