From d246b39a077dc307b79de5fb973901c5dad48e68 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 31 Dec 2019 11:23:13 +0100 Subject: changed title --- Auto-mount-using-Gnome-keyring.md | 17 ----------------- Mounting-on-login-with-Gnome-keyring.md | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 Auto-mount-using-Gnome-keyring.md create mode 100644 Mounting-on-login-with-Gnome-keyring.md diff --git a/Auto-mount-using-Gnome-keyring.md b/Auto-mount-using-Gnome-keyring.md deleted file mode 100644 index 2a5c376..0000000 --- a/Auto-mount-using-Gnome-keyring.md +++ /dev/null @@ -1,17 +0,0 @@ -To automatically mount an encrypted folder at user login, the gnome keyring service can be used on many Linux distributions (tested on Solus Linux). - -First step is to store the password in the keyring. The label assigned is only used to easily identify the different passwords stored in the keyring. One or more attribute/value pairs can be stored with the password and are used later for the lookup. Below example suggests to use the path of the encrypted folder for the lookup and call the attribute "cipher". - -``` -secret-tool store --label="MyLabel" cipher /path/to/encyrpted/folder -``` - -Now the stored password can be used by gocryptfs with the `--extpass` option - -``` -gocryptfs --extpass="secret-tool lookup cipher /path/to/encyrpted/folder" /path/to/encyrpted/folder /path/to/plain/folder -``` - -This command can be directly added to the auto-start commands to mount the encrypted folder at user login since the user keyring is usually automatically unlocked at user login. - -**Note:** Avoid to use any space characters in the attribute or value strings. This will cause issues with gocryptfs `--extpass`option. \ No newline at end of file diff --git a/Mounting-on-login-with-Gnome-keyring.md b/Mounting-on-login-with-Gnome-keyring.md new file mode 100644 index 0000000..2a5c376 --- /dev/null +++ b/Mounting-on-login-with-Gnome-keyring.md @@ -0,0 +1,17 @@ +To automatically mount an encrypted folder at user login, the gnome keyring service can be used on many Linux distributions (tested on Solus Linux). + +First step is to store the password in the keyring. The label assigned is only used to easily identify the different passwords stored in the keyring. One or more attribute/value pairs can be stored with the password and are used later for the lookup. Below example suggests to use the path of the encrypted folder for the lookup and call the attribute "cipher". + +``` +secret-tool store --label="MyLabel" cipher /path/to/encyrpted/folder +``` + +Now the stored password can be used by gocryptfs with the `--extpass` option + +``` +gocryptfs --extpass="secret-tool lookup cipher /path/to/encyrpted/folder" /path/to/encyrpted/folder /path/to/plain/folder +``` + +This command can be directly added to the auto-start commands to mount the encrypted folder at user login since the user keyring is usually automatically unlocked at user login. + +**Note:** Avoid to use any space characters in the attribute or value strings. This will cause issues with gocryptfs `--extpass`option. \ No newline at end of file -- cgit v1.2.3