View Poll Results: How useful was this thread?

Voters
0. You may not vote on this poll
  • This thread was really helpful

    0 0%
  • This thread was a teeny bit helpful

    0 0%
  • This thread was useless

    0 0%
Results 1 to 2 of 2

Thread: HOW TO: add passwords to, and encrypt, certain folders. (Easy step by step guide)

  1. #1
    Join Date
    Oct 2007
    Beans
    435

    HOW TO: add passwords to, and encrypt, certain folders. (Easy step by step guide)

    Start by installing fuse-utils and encfs
    in a terminal:
    Code:
    sudo apt-get install fuse-utils encfs


    add your user to the fuse group (replacing USERNAME with your login name)
    in a terminal:
    Code:
    sudo adduser USERNAME fuse


    open /etc/modules with an editor and add the fuse module
    Code:
    gksudo gedit /etc/modules
    when it opens add the word:

    fuse



    then start fuse by typing
    in a terminal:
    Code:
    sudo modprobe fuse


    Create 2 directories, one hidden and one normal. The normal one will be the mountpoint and the hidden one will hold the encrypted files.
    in a terminal:
    Code:
    mkdir ~/files
    mkdir ~/.files
    OR
    right click in nautilus then "Create Folder" (The terminal option is quicker)




    now mount ".files" at mountpoint "files" encfs
    Code:
    encfs ~/.files ~/files
    (You'll be asked for a password)

    Open the files folder and put your documents/vids/pics and other stuff in it.

    Then unmount it using fusermount. You will see your files are invisible. If you look in the '.files' folder you will see that they are also encrypted.

    Code:
    fusermount -u ~/files
    .................................................. ............

    Remember

    To call up your files type
    Code:
    encfs ~/.files ~/files
    and to hide them again type
    Code:
    fusermount -u ~/files
    .................................................. ............

    What I did was create a simple bash script to open and close the files and placed it in /usr/bin and create a link in my menu with alacarte.

    This is the script:
    Code:
    #! /bin/bash
    read -p "Would you like to open your encrypted files (y/n)?"
    [ "$REPLY" == "n" ] || encfs ~/.Files ~/Files
    read -p "Would you like to unmount your encrypted files (y/n)?"
    [ "$REPLY" == "n" ] || fusermount -u ~/Files
    read -p "To open or close your encrypted files run this program again. Press Enter"
    Paste it in to gedit and save it as encfsscript in your home directory

    Make it executable

    in a terminal:
    Code:
    chmod 755 ~/encfsscript


    Open superuser nautilus and cut and paste the script in /usr/bin

    in a terminal:
    Code:
    gksudo nautilus


    Open alacarte and make a link in your menu

    in a terminal:
    Code:
    alacarte
    Go to the folder where you want to put the link and click "New Item"

    Choose a nice icon by clicking on the picture.

    Then add these details:

    Type: Application in Terminal
    Name: Encrypted Files
    Command: encfsscript
    Comment: Mounts and Unmounts Encrypted Files!!

    I'd be very interested to hear how you got on, let me know!

    Also let me know if you find any mistakes and typos!!
    Last edited by pluckypigeon; December 8th, 2008 at 05:11 PM.

  2. #2
    Join Date
    Feb 2006
    Beans
    457

    Re: HOW TO: add passwords to, and encrypt, certain folders. (Easy step by step guide)

    pluckypigeon,
    I could have done with this a few weeks ago but I settled for Help EncryptedPrivateDirectory & Wiki EncryptedPrivateDirectory and it seems to have worked for me.

    Keep up the good work.

Tags for this Thread

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
  •