Comment 2 for bug 1699427

Revision history for this message
Pieter Coetzee (pcoetzee) wrote :

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:
$ 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---

Thanks for your reply and kind regards,
Pieter