Coder Social home page Coder Social logo

lijuchacko / encrypt_folders Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 18 KB

This is a utility for folder encryption on a linux PC. Folders can be mount/unmount as required . Shell script provides an easy means to setup & maintain encypted folders ,even for a new user. Since it is shell script based, it is not dependent on other packages, other than ecryptfs utilities.

License: GNU General Public License v3.0

Shell 100.00%

encrypt_folders's Introduction

'ecrypfs_mount_mine' is an easy way to keep selected folders encrypted using ecryptfs utilities

Installation

Run install script in this folder

chmod 777 install
sudo ./install 

Installation script will do following things for you

  1. Copy 'ecrypfs_mount_mine' & 'encrypt_folder' to /usr/bin folders and give executiong permission to the files

  2. Add extra line to /etc/sudoers as given below (you can use visudo command)

    ALL ALL = NOPASSWD: /usr/bin/encrypt_folder
  1. Setup configuration file for new user

Create empty folders and put the absolute path of the folders in .ecryptfs/folder_list (in your home folder), one below the other

Run

    ecryptfs_mount_mine -m

Enter password given during installation processes and proceed. Folders will be listed one after the other.

After mounting you can use the folder as usual. After unmounting or after restarting PC, the folders will be empty, you have to mount it using above command.

Note

  1. Always mount folders before using them.

  2. Additional folders can be added in .ecryptfs/folder_list later, but the folder should be empty to start with.

  3. Keep a backup of .ecryptfs folder.

  4. Your encrypted contents are kept in '_ecrptfs' folder, do not delete or rename or relocate them

  5. Contents of folder will not be visible if folder is not mounted

  6. Use 'ecryptfs_mount_mine -m ' to mount folders. Give 'y' answer to the corresponding folders

  7. Use 'ecryptfs_mount_mine -um ' to umount folders. Give 'y' answer to the corresponding folders

  8. Your password is actually the Wrapping passphrase

  9. If you are getting any mounting error regarding keyring , rerun install script

  10. Install script is required to setup encryption for another user on the same PC.

Migrating to new system or new user

If you want to open encrypted folder from another user or after OS reinstallation do the following

1. Copy .ecrypfts folder to new home folder 

2. If you are relocating the folder then  <folder> and <folder>_ecrptfs should be placed side by side

3. .ecryptfs/folder_list should contain the absolute path the folders

4. Run install script 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.