Questions tagged [ecryptfs]

eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux. Ubuntu's encrypted home directory feature uses this technology.

Filter by
Sorted by
Tagged with
54 votes
4 answers
67k views

How do I mount an encrypted /home directory on another Ubuntu machine?

I've done something a bit, well, strange. I installed Ubuntu 12.04 directly onto a USB thumb stick, encrypting the /home directory as given the option during the install. The filesystem is btrfs, I ...
9 votes
2 answers
20k views

What is the recommended method to encrypt the home directory in Ubuntu 21.04?

Installing Ubuntu to a new Notebook, I was surprised that I wasn't offered the option to encrypt the home directory any more. I found some vague information that Ubuntu dropped ecryptfs support a ...
1 vote
2 answers
4k views

eCryptfs - Cannot decrypt filenames

I have encrypted data on an external HD mounted on /home/username/.Data. I am trying to decrypt it to /home/username/Data. Although I can successfully read the files contents, I cannot manage to ...
0 votes
0 answers
90 views

ecryptfs-setup-swap made a swap that is in clear text to root

I am running Ubuntu 22.04 LTS on a MacBook Air, SSD, using LVM without encryption. The original swap was mapped to /dev/dm-1. After running ecryptfs-setup-swap, the new swap was mapped to /dev/dm-2 ...
11 votes
4 answers
6k views

Resize swap partition on Ubuntu 20.04 using encrypted LVM

I have a pretty standard Ubuntu 20.04 setup, with LVM and encrypted hard drive. However, the standard setup seems to have provided a very small 900 MB swap (or did I choose that?), and it now ...
6 votes
1 answer
4k views

What's the best practice for backing up encrypted Ubuntu home dir?

After installing Ubuntu 12.04 and electing to encrypt my entire home directory, I am now wondering what the best way would be to back up the data here. I backed up the rest of my file system with ...
3 votes
1 answer
5k views

How to unmount an ecryptfs .Private directory mounted at /tmp?

Say that I want to view the contents of an encrypted home directory, I can simply use "sudo ecryptfs-recover-private " and it will mount an unencrypted copy at /tmp. That's all fine and good, but how ...
0 votes
0 answers
28 views

Asymmetric Filesystem Encryption

How to encrypt (live) data preferrably as a write only filesystem using a rsa public key known on the device (which is offline), that only later can be decrypted by using the private key? So once ...
2 votes
1 answer
326 views

What is the state of the art setup for encrypted home directories which allow remote SSH login in 2022/2024?

Question What is the state of the art replacement for ecryptfs, while allowing user logins through SSH without a "master" full disk encryption (= FDE) password? Context A long time ago ...
1 vote
1 answer
518 views

Which one: moving /home or making symlinks in regard to SSD efficiency

My whole Ubuntu installation including /home is located in an ext4 partition on an SSD drive. I'm going to move archives and document files (which are almost all inside the home folder) to an external ...
0 votes
0 answers
132 views

How to fix permissions when using "ecryptfs' command

I am trying to recover an encrypted home directory from an Ubuntu installation hard drive, attached as an external hard drive to my current Ubuntu system. I opened a terminal and launched some ...
0 votes
0 answers
96 views

Ecryptfs automount on startup

i just updated Ubuntu to 22.10 - and after each reboot I have to mount my home files (encrypted with ecryptfs) manually via terminal. Is there any solution to automate this? Before updating it was ...
4 votes
4 answers
7k views

Dual Ubuntu Installations with Whole Disk Encryption

My goal is I want to have a Xubuntu/Ubuntu dual boot, with a catch - I want the disk to be fully encrypted with the dm-crypt (native supplied) whole disk encryption. Now I know, out of the box the ...
-2 votes
1 answer
55 views

Ecryptfs problem with Spanish characters

I'm using Ubuntu 22.04. I'm trying to decrypt a home directory that was encrypted on a previous install. I'm using ecryptfs-recover-private and it's finding the .Private file I need. However, when it ...
2 votes
1 answer
431 views

Cannot login, after a failed attempt to uninstall ecryptfs

I probably did a few things wrong on my Ubuntu installation, and I hope that someone here can help me fix that. I'll try to describe in details what I did, if you need more technical detail ask me in ...
3 votes
1 answer
6k views

Recovering Encrypted Home Directory With Ecryptfs - Passphrase not working

My computer recently failed and I'm now trying to recover files off my external SATA SSD via LiveUSB. I don't remember encrypting my computer, but I'm receiving the ACCESS_YOUR_.... file when ...
1 vote
1 answer
263 views

Encrypting a non-empty folder with ecryptfs

I have some folders with a lot of large files inside them and I would like to encrypt them using ecryptfs. I am wondering if it is possible to mount a folder that already has files (and subfolders ...
0 votes
1 answer
515 views

Encrypted swap won't mount at boot

I need help with my encrypted swap on Ubuntu 14.04. It won't mount. I used ecryptfs-setup-swap to encrypt the swap. At boot this error occurs: device-mapper: rename ioctl on cryptswap1_unformatted ...
4 votes
2 answers
1k views

Use rsync to backup .ecryptfs, but also use exclude some folders inside

I want to backup the /home/.ecryptfs folder on my machine using rsync. I don't want to back up the unencrypted files. However, I want to exclude certain folders. For example, music, downloads, or ...
0 votes
0 answers
33 views

Home Directory Deletion

For some reason I had the remnants of an old encrypted drive in my home directory from a previous distro that I had copied over long ago. Basically my home directory only contained the encrypted ...
0 votes
1 answer
47 views

Will ecryptfs-protected home partition backup be unreadeable after restoring it to a new ubuntu install?

I have a little problem here. I've just finished to set up my automatic backup system using Duplicity and Déja Dup. I backup my files to my server using SSH. After some testing, i've checked that I ...
10 votes
4 answers
8k views

Setting correct size for "cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt mapping root" message

I have a full disk encryption using ecryptfs, after upgrading to 18.10 a warning message started to appearing at boot: cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt ...
1 vote
2 answers
4k views

Recover deleted folder in encrypted home

I have a big problem! i accentually deleted a very imported folder in my home dir while creating a backup. I stopped the backup, shutdown the laptop, but there are still a lot of files to be backed up....
0 votes
1 answer
70 views

Accessing files in old computer hard drive

An old laptop with ubuntu 16.04 just died, i have extracted the hard drive and I’m using now a sata to usb cable to connect it to another laptop. Windows doesn’t show anything, so I have mounted the ...
1 vote
2 answers
4k views

Recovering an encrypted home folder in Ubuntu

I was trying to upgrade to 18.04, and after reboot, I could not log in, even on a virtual terminal (Alt+Ctrl+F1). I don't know the exact reason, but my assumption is there was less space in home that ...
0 votes
0 answers
542 views

"ERROR: Cannot proceed" when trying to encrpyt home directory in Ubuntu 20.04

I installed ecryptfs-utils cryptsetup. Then I created a new user and assigned sudo privileges. After that, I tried to to encrypt the main user's home directory and ran into an error. encryption_user@...
1 vote
0 answers
20 views

mount an old copy of an encrypted home folder

I am running Ubuntu 18.04 and created a copy of the Home partition which included my encrypted home folder. At the time I didn't realize the UUID was also duplicated which I have since fixed. I have ...
0 votes
1 answer
3k views

Decrypt user home after installing Ubuntu 22.04

I have a laptop with two mount points, one with the system (/) and another with the /home folder. My user folder in /home was encrypted with Ubuntu 20.04. This morning I re-installed the system with ...
8 votes
1 answer
3k views

How to prevent ecryptfs from umounting home if tmux is still running?

I have a server, which i access over ssh. Sometimes i like to run some scripts (some of them in the background) in tmux and then detach it, close the connection and access tmux later. But ...
1 vote
1 answer
42 views

How to set user interface language for user with encrypted home?

After encrypting home directory by means of ecryptfs tool specified UI language is not applied after system restart. If user in the system only one the whole system UI can be changed to needed one. ...
24 votes
7 answers
32k views

Securely automount encrypted drive at user login

An encrypted /home directory gets mounted automatically for me when I log in. I have a second internal hard drive that I've formatted and encrypted with Disk Utility. I want it to be automatically ...
0 votes
2 answers
221 views

Apparmor problem with ecryptfs mount on mysql folder

I am getting mysql to run on a ecryptfs filesystem in a standard LAMP stack running in DigitalOcean Ubuntu 18.04.2 for a Wordpress website. It is running well with the process below, except that ...
1 vote
0 answers
133 views

Writing to encrypted home directory from live USB [closed]

I want to replace my entire home dir with a backup. While not logged in, so I don't break things. It's encrypted and the backup is (unencrypted) on an external SSD. I plan to boot from a live USB and ...
119 votes
10 answers
73k views

How to stop using built-in home directory encryption?

I have a new Ubuntu 10.04 installation with encrypted home directory (using the built-in encryption offered by Ubuntu installer). What's the easiest way to stop using encryption? (I.e., to decrypt ...
0 votes
0 answers
951 views

Mount LUKS encrypted partition at login

I would like to mount a LUKS partition on login. The solutions I have found involve using either: a LUKS passphrase that is equal to the user's password, or a keyfile that is stored in the HOME ...
5 votes
1 answer
692 views

Ubuntu 18.04 does not switch between users after upgrade

I have upgraded Ubuntu 16.04 to Ubuntu 18.04. I do not intend to make a further upgrade to Ubuntu 20.xx for the moment. All looks to have gone well except the switching of users from within the ...
14 votes
3 answers
44k views

How do I open Access-Your-Private-Data.desktop?

Help how do I open this. the README file says THIS DIRECTORY HAS BEEN UNMOUNTED TO PROTECT YOUR DATA. From the graphical desktop, click on: "Access Your Private Data" or From the command line, ...
0 votes
0 answers
72 views

After encrypting a file, using the same encryption method and entering a different password, the file is decrypted

With the encryption tool I downloaded, I encrypt a file with the command sudo apt-get install ecryptfs-utils. After performing the operations, I use the umount command and encrypt the .txt files in ...
0 votes
1 answer
746 views

Ecryptfs cannot find a key NOT associated with the mount passphrase

Using Ubuntu 18.04 after an upgrade from 16.04. No intention for the moment to upgrade to 20.04. I am having troubles with ecryptfs when logging in into one of two users. I am working from a tty ...
14 votes
2 answers
8k views

Could not find valid key in user session keyring for sig specified in mount option after upgrade from 16.04 to 18.04

About a month ago I updated my 16.04 LTS server to 18.04.1 LTS. The upgrade went fine. However, since the upgrade, whenever a user logs in, there is a message displayed in dmesg or on the local ...
4 votes
1 answer
1k views

Run ecryptfs from live USB (Solved)

I am trying to recover an encrypted home folder from a broken system. I found several posts on this, referring to running ecryptfs-recover-private from a live session. Trying this using a 18.04 on a ...
0 votes
0 answers
141 views

How to keep an encrypted home directory mounted (even after logout)

Sometimes I'd like to ssh to a machine, mount my encrypted home directory and disconnect and keep the directory mounted. What I managed already to do is ssh to my machine (without password only ...
11 votes
1 answer
10k views

rsync giving "file name too long" errors with ecryptfs

I'm trying to use rsync to make an archival copy of a file system. Most of the files are being copied OK. However, some files are failing to be copied with errors such as the following: rsync: ...
0 votes
1 answer
170 views

How to let Chrome Remote Desktop run with encrypted /home before login

Background: I have a headless system put on a public place. I installed Chrome Remote Desktop on it, so that it can automatically launch several desktop applications after boot, and I can connect ...
6 votes
2 answers
819 views

How to change the timeout of directories mounted with ecryptfs-mount-private

When I mount my encrypted .Private data, I can access (rw) my data fine. After a while the mount seems to be unmounted automatically. Is there a default timeout? If so, how can I change it? The ...
0 votes
1 answer
229 views

I Can't Log In to my Account after Password reset

I forgot the password to my admin account in ubuntu, I googled how to reset ubuntu admin password, then did the following steps from the tutorial that I found online Enter Recovery Drop to root shell ...
21 votes
6 answers
14k views

problem with ecryptfs-recover-private: mount(2) failed

I'm in the process of moving my OS and data from one drive to another within the same computer. (I got a nice, new SSD.) My old home directory had an encrypted sub directory inside, and I'd like to ...
13 votes
3 answers
5k views

How can I confirm that I'm using ecryptfs?

Is there a simple way to tell if I'm using ecryptfs on my home directory? I tried running the ecryptfs-migrate-home script a while ago, and it failed part way through. I assumed that it went back to ...
0 votes
0 answers
298 views

Encrypted disk passphrase prompt

After installing Ubuntu 18.04 with an encrypted drive, I expected to see a passphrase prompt before the normal prompt for login. Instead, I only see the usual bootup process until it stops on a blank ...
0 votes
1 answer
213 views

Booting to black screen (possible ecryptfs failure)

I've been running 20.10 on my machine without problems for a while now. I was in the process of trying to encrypt the home folder of a second user with ecryptfs following this article https://www....

1
2 3 4 5
9