[systemd-devel] Systemd User Service Not Starting with ecryptfs

Andrei Borzenkov arvidjaar at gmail.com
Wed Jan 31 03:20:52 UTC 2018


31.01.2018 00:42, Max Ehrlich пишет:
> Andrei,
> 
> Honestly I just clicked "encrypt my home folder" on the GUI install a few
> months ago. I'm trying to figure out what method ububtu uses by poking
> around, but if you know how I can check please let me know
> 
> Thanks for your 

I checked /etc/pam.d/common-session on Ubuntu 16.04 and pam_systemd
comes before pam_ecryptfs. You may try to swap these lines.

session optional        pam_systemd.so
session optional        pam_ecryptfs.so unwrap


response,
> Max
> 
> On Tue, Jan 30, 2018, 13:09 Andrei Borzenkov <arvidjaar at gmail.com> wrote:
> 
>> 30.01.2018 18:21, Max Ehrlich пишет:
>>> I use home folder encryption with ecryptfs. I also want to start
>> gpg-agent
>>> when I login using a user service. No matter what I try, I can't get this
>>> to work because it seems like systemd deosnt wait for the decryption to
>>> happen. Is there any support for this configuration or can my user
>> services
>>> be stored someplace else?
>>>
>>
>> How exactly you decrypt home - PAM integration (pam_ecryptfs, pam_mount,
>> ??) or something else?
>>
>> I suppose when using PAM it /may/ work if PAM module responsible for
>> ecryptfs comes before pam_systemd.
>>
> 



More information about the systemd-devel mailing list