Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

backloop/automount-ecryptfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automount-ecryptfs

Mount/umount an eCryptfs filesystem automatically on user login/logout. Works only on Gnome based systems due to dependency on Gnome Session Manager for logout detection.

Description

The purpose of automount-ecryptfs is to automatically mount/umount ecryptfs encrypted secondary filesystems. I.e. the security depends on having these configuration scripts stored in a primary filesystem which is already encrypted, e.g. an encrypted home directory. The reason is that the ecryptfs passphrase is stored in cleartext...

Currently, these tools assume that the ecryptfs filesystem has already been created and that the passphrase is available.

The tools create the following files, where <conf_id> is an identifier chosen by the user during initial configuration:

File Comment
~/.automount-<conf_id>.conf Contains the configuration metadata; e.g.mount locations
~/.automount-<conf_id>.ecryptfs Maintains the ecryptfs passphrase separately for easy parsing
~/automount-<conf_id>.sh The script executed by the Startup Applications functionality
~/.config/autostart/automount-<conf_id>.desktop Programmatically adding an application to Startup Applications
/etc/sudoers.d/01_automount-<conf-id> Allow unattended execution of restricted commands, e.g. mount/umount

Usage

Initial configuration

$ ./configure

Removal of configuration files

$ ./configure -d <conf_id>

Supported Platforms

All Gnome based systems should be supported. Verified on:

  • Ubuntu 14.10 through to 17.04 and 19.10

About

Mount/umount multiple eCryptfs filesystems automatically on user login/logout on Gnome based systems.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages