"The mount point ("upper directory") for the encrypted folder will be at ~/Private by default, however you can manually change this right after the setup command has finished running, by doing:
$ mv ~/Private /path/to/new/folder
$ echo /path/to/new/folder > ~/.ecryptfs/Private.mnt"
i.e.
#> su - mysql
$> mv ~/Private /var/lib/mysql/data
$> echo /var/lib/mysql/data > ~/.ecryptfs/Private.mnt
* I can not enter the mounted dir /var/lib/mysql/data in order to create or remove files.
* I can copy files into the mounted drive /var/lib/mysql/data directory and also out from the mounted drive
* I can not remove/delete files from the mounted directory
* The .Private dir appears to get populated with encrypted data
For example:
$> ls -latr /var/lib/mysql/.Private/
total 1126988
-rw-rw---- 1 mysql mysql 12288 Sep 21 2016 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUYS3s-lAKefWI9kFl2EtfrU--
drwx------ 2 mysql mysql 8192 Jun 6 13:07 ECRYPTFS_FNEK_ENCRYPTED.FXbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUwuVE.Gar3U0VrJGI1iCWBcYyIgYDxJi33xH82.4OBx--
drwx------ 2 mysql mysql 12288 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUik5mmKXwWLAUK4w1Jo5V5U--
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUTI6BCTA5AT3yxhvXnNDc1---
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUtENkTvY9AyHa7nFMbB-ExU--
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUI4mX-6UV57AQs-e75Nm7zU--
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUjdx38rncIgb4Bhstqzrf6E--
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUjm03VHpaDHsx9f74mWx4nU--
drwx------ 2 mysql mysql 12288 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUtxQR4hGMFujLmhZh62NGJ---
drwx------ 2 mysql mysql 8192 Jun 6 15:49 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUmr.SoEKt-8K7QVEwSsV0lk--
drwx------ 2 mysql mysql 97 Jun 6 15:54 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUpRWLpx0YOiDyghjh3uEPyk--
drwx------ 2 mysql mysql 97 Jun 6 15:54 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUghwO6ut2Cmy2Qxu.6f0TD---
drwx------ 2 mysql mysql 188416 Jun 6 15:54 ECRYPTFS_FNEK_ENCRYPTED.FXbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUUVDmLTIVZRCkzC4HYmLPQ8a4SPvDEfP6dZoQk8yuQgc-
drwx------ 2 mysql mysql 233472 Jun 6 15:54 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUDrHV7wtWDlUTcij1yjEhBU--
-rw-rw---- 1 mysql mysql 12288 Jun 20 12:28 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUT1zhFGypSUVVuxZ60Rov-U--
-rw-rw---- 1 mysql mysql 12288 Jun 20 12:28 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUTnpJebJNSFj0twnV1w3acU--
-rw-rw---- 1 mysql mysql 536879104 Jun 20 12:28 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUZ4dbFdoevqYXAVoZbeDgCU--
-rw-rw---- 1 mysql mysql 536879104 Jun 20 12:28 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUPFYU6uhHjKcvGiAzrT5Kf---
-rw-rw---- 1 mysql mysql 79699968 Jun 20 12:28 ECRYPTFS_FNEK_ENCRYPTED.FWbtTBHNuEyB6kTg8F.wxHMvzsx5XP0yq6bUabZppZcKw.-1toOBFMJzf---
Hi Jason,
I followed the instructions from the wiki in order to create the mount:
https:/ /wiki.archlinux .org/index. php/ECryptfs
"The mount point ("upper directory") for the encrypted folder will be at ~/Private by default, however you can manually change this right after the setup command has finished running, by doing: Private. mnt"
$ mv ~/Private /path/to/new/folder
$ echo /path/to/new/folder > ~/.ecryptfs/
i.e. Private. mnt
#> su - mysql
$> mv ~/Private /var/lib/mysql/data
$> echo /var/lib/mysql/data > ~/.ecryptfs/
* I can not enter the mounted dir /var/lib/mysql/data in order to create or remove files.
* I can copy files into the mounted drive /var/lib/mysql/data directory and also out from the mounted drive
* I can not remove/delete files from the mounted directory
* The .Private dir appears to get populated with encrypted data
For example: mysql/. Private/ FNEK_ENCRYPTED. FWbtTBHNuEyB6kT g8F.wxHMvzsx5XP 0yq6bUYS3s- lAKefWI9kFl2Etf rU-- FNEK_ENCRYPTED. FXbtTBHNuEyB6kT g8F.wxHMvzsx5XP 0yq6bUwuVE. Gar3U0VrJGI1iCW BcYyIgYDxJi33xH 82.4OBx- - FNEK_ENCRYPTED. FWbtTBHNuEyB6kT g8F.wxHMvzsx5XP 0yq6bUik5mmKXwW LAUK4w1Jo5V5U- - FNEK_ENCRYPTED. FWbtTBHNu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oev qYXAVoZbeDgCU- - FNEK_ENCRYPTED. FWbtTBHNuEyB6kT g8F.wxHMvzsx5XP 0yq6bUPFYU6uhHj KcvGiAzrT5Kf- -- FNEK_ENCRYPTED. FWbtTBHNuEyB6kT g8F.wxHMvzsx5XP 0yq6bUabZppZcKw .-1toOBFMJzf- --
$> ls -latr /var/lib/
total 1126988
-rw-rw---- 1 mysql mysql 12288 Sep 21 2016 ECRYPTFS_
drwx------ 2 mysql mysql 8192 Jun 6 13:07 ECRYPTFS_
drwx------ 2 mysql mysql 12288 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 12288 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 8192 Jun 6 15:49 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:54 ECRYPTFS_
drwx------ 2 mysql mysql 97 Jun 6 15:54 ECRYPTFS_
drwx------ 2 mysql mysql 188416 Jun 6 15:54 ECRYPTFS_
drwx------ 2 mysql mysql 233472 Jun 6 15:54 ECRYPTFS_
-rw-rw---- 1 mysql mysql 12288 Jun 20 12:28 ECRYPTFS_
-rw-rw---- 1 mysql mysql 12288 Jun 20 12:28 ECRYPTFS_
-rw-rw---- 1 mysql mysql 536879104 Jun 20 12:28 ECRYPTFS_
-rw-rw---- 1 mysql mysql 536879104 Jun 20 12:28 ECRYPTFS_
-rw-rw---- 1 mysql mysql 79699968 Jun 20 12:28 ECRYPTFS_
Thanks for your reply and kind regards,
Pieter