Questions tagged [ecryptfs]

The tag has no usage guidance.

1
vote
1answer
26 views

Copying ext4 encrypted files

I'm using ext4 encryption. https://wiki.archlinux.org/index.php/Ext4#Using_file-based_encryption Before I decrypt a directory, I can see lots of encrypted filenames in it. I would like to copy the ...
1
vote
0answers
38 views

NFS mount on client not matching what's exported on the server

I've managed to successfully network two home computers with a crossover Ethernet cable. My intention is to arrange a fast transfer of files from one to the other. This is the first time I'm pairing ...
1
vote
0answers
8 views

Setting mount options for PAM mounted ecryfptfs

Is there any way of using (for example) the lazytime mount option with ecryptfs if it's automatically mounted by PAM when you login?
0
votes
1answer
187 views

Encrypting a currently used external hard drive such that it can be updated with rsync?

I currently have an unencrypted external hard drive that I use as a backup for my encrypted (with LUKS) main machine. To update my backup, I simply log in to the main machine and rsync to my external ...
0
votes
0answers
28 views

Running a BASH script via crontab causes ecryptfs volume to unmount

On my MX-18 linux (Debian 9 Stretch based) system, whenever a script runs via cron, my Private ecryptfs volume unmounts. Confirmed, no issue running the same BASH scripts from a terminal. Tested with ...
0
votes
0answers
70 views

Change encryted home files to not hidden directory

I'm using Linux Mint 19 Tara with home folder encryption set during OS installation. I know that my encrypted files are stored under ~/home/.ecryptfs But I need to have them under not hidden directory,...
0
votes
1answer
31 views

Recovering .eCrytpts files from sbd1 drive

When one of my RAID 1 drives went bad, after installing a replacement with one button in bios I ended up reformatting my drive. Linux then refused to recognize the new RAID formated drive, I managed ...
0
votes
1answer
95 views

Automount ecryptfs home in chroot (when using schroot)

my host system is archlinux and i need an ubuntu enviornment ready to be used with the files in my home directory. Problem is: my home directory is encrypted using ecryptfs. So when i launch the ...
2
votes
2answers
380 views

“ecryptfs-mount-private” returns “fopen: No such file or directory”

Recently, we've rebooted server and got ecryptfs mount fail: ... Signature not found in user keyring Perhaps try the interactive 'ecryptfs-mount-private' user@host:~$ Could that be because ...
1
vote
0answers
123 views

How to mount ecryptfs and preserve individual SELinux tag of underlying files?

I am trying to mount ecryptfs on a system that uses SELinux (e.g. Cent-OS), and I want to preserve the security tag of all individual underlying files. Using mount -o command I can set the security ...
0
votes
2answers
49 views

Is Encrypting/Decrypting an external USB Drive with minimal priviledge possible?

The following situation is the case: I want to provide my students with an easy way to protect their data securely and encrypted on an external usb drive with the zero knowledge principle in mind so ...
0
votes
1answer
158 views

Ecryptfs input/output error

Recently my primary workstation OS "Linux Ubuntu" failed to boot and has since become irrecoverable, however the encrypted home directory is still intact but i cannot decrypt as it keeps giving me ...
-1
votes
1answer
386 views

Startup script to decrypt home directory

I accidentally enabled /home encryption on installation. So I need to decrypt it manually from console after every system start. I do it with ecryptfs-umount-private. How can I make the decryption ...
2
votes
1answer
431 views

Disk encryption with ecryptfs - full disk

i'm new and i hope to find an answer here. Please tell me, if you need more information. I have an disk encryption for my home partition on Linux 4.13.0-43-generic x86_64 (Ubuntu 16.04.4 LTS). Today ...
1
vote
1answer
205 views

Encrypted Home Directory Problems/Questions

I usually use full disk encryption but I want to create a Ubuntu server that multiple user can use as a file server (using SSHFS GUI clients) and therefore I want their home directories to be ...
0
votes
1answer
162 views

I mounted a ZFS dataset within an ecryptfs directory and now cannot see the contents or change the mountpoint

I'm running Ubuntu 16.04 LTS on a desktop that uses a ZFS on Linux (ZoL) pool. My home directory is encrypted using the built-in encryption setup at install time and has worked great, and ZFS has ...
5
votes
2answers
444 views

QNAP eCryptFS Filesystem Broken Permissions

Following an issue with my QNAP device I've had to do a whole load of manual recovery of data and only getting at my encrypted data remains. It seems that QNAP use eCryptFS to do this. I've managed ...
9
votes
2answers
1k views

How is it possible 8 blocks get allocated but file size 0?

Someone ask me in other site about this question, i.e. a file named "abc.dat" has 0 file size but 8 blocks, and this is the output I ask him to give me (Some text has been translated from Chinese to ...
1
vote
0answers
467 views

Use Systemd user services with ecryptfs

I want accomplish the following task: On a Ubuntu System with multiple Users accounts and encrypted Home directorys a NFS share should be mounted after login. I want to use systemd user service for ...
0
votes
1answer
896 views

How to auto-mount HDD within encrypted /home partition/directory?

My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of ...
0
votes
1answer
919 views

Encrypting & mounting directory with ecryptfs [closed]

I wanted to encrypt a directory in such a way that the directory will stay encrypted after I login and only when I deliberately enter my passphase will the content of the directory be decrypted. I ...
1
vote
2answers
1k views

How to automatically `ecryptfs-mount-private` on `gdm` login in Fedora 27?

I have installed Fedora, but used existing /home partition from previous Ubuntu install: partitions: /boot/efi, / (formatted during install), /home (kept from Ubuntu), user was set-up with same ...
0
votes
1answer
730 views

Encrypting home directory on Raspberry pi with password file on USB

I have been trying to follow this guide: https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/ to encrypt the home directory on my pi with out a ...
1
vote
3answers
1k views

Why does systemd wait for a disk not present in `fstab`?

My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive: (...boot.log...) A start job is running for dev-disk-by\x2duuid-6bbb4ed8\x2d53ea\...
1
vote
0answers
117 views

Erroneous duplicate files in ecryptfs

I've been using ecryptfs with Ubuntu many a year. Today I found a curious error that I cannot fix. My home folder is auto-mounted as ecryptfs under Ubuntu whenever I login. I have been using this ...
1
vote
1answer
585 views

Creating an eCryptfs Filesystem

I have a number of user directories that I'd like to have encrypted and authenticated via eCryptfs. I am attempting to create a new filesystem like so: gpg2 --decrypt key.gpg | \ sudo mount -t ...
2
votes
1answer
769 views

Why fstrim appears not to trim data blocks on btrfs (+ecrypts)?

I have an SSD disk with several partitions. One of them is has a btrfs volume, mounted as /home, which holds an ecryptfs home directory. When I trim the volumes, it seems that fstrim doesn't trim ...
3
votes
1answer
3k views

How do I decrypt ecryptfs files?

I tried to setup ecryptfs on Debian Jessie, but I made an error and I cannot login now. So I took my encrypted files, and placed them in a safe place. How do I decrypt these files? I still remember ...
2
votes
2answers
826 views

Cannot recover encrypted files on Ubuntu

I needed to reinstall ubuntu on my hard drive because I think I corrupted some files and it wasn't booting up (I know, it was very stupid). I tried to reinstall from a LiveCD by checking the "keep the ...
2
votes
0answers
68 views

Encrypting home partition

I am using Ubuntu 16.04 and have a dedicated drive mounted to /home/USERNAME. When I tried ecrypt-migrate-home -u USERNAME I got an error the the resource was busy. I had logged out, stopped all ...
1
vote
0answers
1k views

Rewrapping the passphrase makes encryption disappear

I was exploring the possibility of changing the login password of ecryptfs. In this system (Ubuntu 14.04 LTS) the login password for ecryptfs and that for the Linux user are the same. My ecryptfs-...
1
vote
0answers
324 views

Is multiple ecryptfs encryption possible?

Is multiple ecryptfs encryption possible? How to encrypt a folder called level2 with ecryptfs that is inside a ecryptfs mounted folder called level1? level1 and level2 folder are organized as # ...
1
vote
1answer
119 views

How to limit ecryptfs access to a group of processes

I would like to have a script that does the following: Mounts an encrypted directory using ecryptfs Sets up permissions so that only a bash shell launched by it and any processes inheriting from ...
0
votes
2answers
88 views

How to hide the encrypted version of a file put in a cryptfs filesystem?

Say I create an encrypted folder and add a file to it: # mount -t ecryptfs /srv /srv # echo word > /srv/file The content of file is unavailable only after unmounting the filesystem. How can I ...
2
votes
0answers
110 views

How will libpam-poldi work with ecryptfs

I'd like to authenticate myself to my machine using my PGP SmartCard. I'm under the impression that I can do this using libpam-poldi. However, I also have directories that are encrypted using ecryptfs ...
0
votes
1answer
643 views

mount ecryptfs add boot time via init.d script

I have a directory .cipher which is a mount point to an external storage. Now I want to mount this directory to a directory plain at boot time. A running service must access the data without a user ...
3
votes
1answer
53 views

How to gradually delete a file in parallel to encryption?

I need to encrypt a huge file but don't have sufficient storage on my hard-drive to store the file and its encrypted version at the same time. It appears possible to gradually delete the file ...
4
votes
3answers
3k views

Does the linux kernel keyring store keys on disk?

I'm trying to learn a bit about the linux kernel keyring (as background for using ecryptfs). Does the kernel keyring store keys somewhere on disk, or does it get reinitiailized programmatically ...
2
votes
1answer
150 views

ecryptfs mounting failure from kernel 4.7 onwards

Up until kernel 4.6 I was able to mount ecryptfs mounts which had top-level directory plain but lower directories encrypted. From kernel 4.7 onwards I cannot do that anymore. Encrypted home is at /....
1
vote
1answer
572 views

Recovering files from a decrypted .Private directory

Using Linux Mint 17 Cinnamon 64-bit. Originally, I asked this on askubuntu - https://askubuntu.com/questions/831300/cannot-see-contents-of-home-directory-after-error-and-restart - and was then told ...
2
votes
1answer
291 views

Encrypted Home Directory and SSH (Key-Only-Authentication) breaks X11 forwarding

While installing Ubuntu 16.04 I decided to take the option of encrypting my home directory. I also use ssh key-only authorization, as password logins are disabled for security. I was able to solve ...
0
votes
1answer
528 views

ecryptfs-setup-private failing on Centos 6

$ ecryptfs-setup-private --force Enter your login passphrase: Enter your mount passphrase [leave blank to generate one]: ************************************************************************ YOU ...
1
vote
0answers
177 views

Auto-mounting encrypted home folder from previous installation

I have been using Linux Mint till a few days ago, when I installed OpenSUSE LEAP 42.1 instead. In order to keep my existing (and pretty large) user home folder (/home/user), I ordered the SUSE ...
1
vote
0answers
1k views

What is a “file header” in Linux file systems?

The following sentence appears in an article in the web: All cryptographic metadata is stored in the headers of files, so encrypted data can be easily moved, stored for backup and recovered. That ...
1
vote
0answers
108 views

SELinux prevents auto-umount of ecryptfs

I'm running SELinux and ecryptfs on a Debian machine. When a user logs out, unfortunately it's home directory is not unmounted, and I get the following error in audit.log: type=USER_AVC msg=audit(...
3
votes
1answer
552 views

Dynamically resizable partition in a file.. possible?

I ran into the ecryptfs bug where files with long filenames don't get written (because of the prefix that ecryptfs adds to the original filenames, thus extending their length). So I was wondering if ...
2
votes
1answer
2k views

Unable to reinstall GRUB on encrypted filesystem

I made a mistake and deleted the contents of my /boot directory, including GRUB (btw this is easy to do, there is no notice that it will make your system unbootable)! I was going to try to re-copy ...
8
votes
2answers
2k views

ecryptfs: auto-umount does not work

I've set up an encrypted home directory for user piranha3: root@raspberrypi:~# ecryptfs-verify -u piranha3 -h INFO: [/home/piranha3/.ecryptfs] exists INFO: [/home/piranha3/.ecryptfs/Private.sig] ...
1
vote
0answers
564 views

Permission denied using ecryptfs-setup-private as root

If i create an encrypted home directory for a non-root user as root user, I mean: ecryptfs-setup-private -u kok After that, when kok login it fails to mount: Failed to detect wrapped passphrase ...
1
vote
1answer
620 views

Use existing encrypted directory as home directory

In the past, I installed Ubuntu 12.04 with /dev/sda4 mounted as /home. I encrypted my home directory. Today, I erased all the partitions except /dev/sda4 and I installed Xubuntu 14.04 on a new ...