ecryptfs decrypts home AFTER systemd user daemon is loaded. trouble ensues…
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pop!_OS |
New
|
Undecided
|
Unassigned | ||
eCryptfs |
New
|
Undecided
|
Unassigned | ||
ecryptfs-utils (Debian) |
New
|
Unknown
|
|||
ecryptfs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
(I discovered and filed this bug on Debian, but checked with Ubuntu and it's there too. Since Debian ecryptfs bug reports seem to be completely ignored, I'm refiling here):
Dear Maintainer,
After having created some systemd user units (and timers), as I have
done on several other machines without issue, I noticed that the units
were not started upon login on this particular machine. In fact
systemctl showed no knowledge of them at all - until I reloaded the
systemd user daemon and timers; after that all was fine.
The difference between this machine and the other working setups: my
home is encrypted via ecryptfs on this laptop.
So I wondered if maybe the systemd user daemon was started upon login
BEFORE my home was decrypted (thus it'd know nothing of my setup).
Sure enough, in /etc/pam.
invoked AFTER pam_systemd.so.
Reversing the order fixed the problem. I don't know too much about pam but
I think ecryptfs should specify a higher priority in the common-session stack.
Changed in ecryptfs-utils (Debian): | |
status: | Unknown → New |
I think I have the same problem with Syncthing.
I don't know much about systemd, but I'm using Syncthing on two machines, and it's not starting on the one that uses home encryption via ecryptfs because it can't access a subdirectory of ~/.config (where Syncthing stores its configuration) during startup. If I start the service manually after login it works fine.