<div dir="ltr">Andrei,<div><br></div><div>Amazingly it seems like the solution was that simple, thanks for your help. I'm going to let the Ubuntu guys know those should probably be swapped</div><div><br></div><div>thanks again,</div><div>Max</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 30, 2018 at 10:20 PM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">31.01.2018 00:42, Max Ehrlich пишет:<br>
> Andrei,<br>
><br>
> Honestly I just clicked "encrypt my home folder" on the GUI install a few<br>
> months ago. I'm trying to figure out what method ububtu uses by poking<br>
> around, but if you know how I can check please let me know<br>
><br>
> Thanks for your<br>
<br>
I checked /etc/pam.d/common-session on Ubuntu 16.04 and pam_systemd<br>
comes before pam_ecryptfs. You may try to swap these lines.<br>
<br>
session optional        pam_systemd.so<br>
session optional        pam_ecryptfs.so unwrap<br>
<br>
<br>
response,<br>
> Max<br>
><br>
> On Tue, Jan 30, 2018, 13:09 Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>> wrote:<br>
><br>
>> 30.01.2018 18:21, Max Ehrlich пишет:<br>
>>> I use home folder encryption with ecryptfs. I also want to start<br>
>> gpg-agent<br>
>>> when I login using a user service. No matter what I try, I can't get this<br>
>>> to work because it seems like systemd deosnt wait for the decryption to<br>
>>> happen. Is there any support for this configuration or can my user<br>
>> services<br>
>>> be stored someplace else?<br>
>>><br>
>><br>
>> How exactly you decrypt home - PAM integration (pam_ecryptfs, pam_mount,<br>
>> ??) or something else?<br>
>><br>
>> I suppose when using PAM it /may/ work if PAM module responsible for<br>
>> ecryptfs comes before pam_systemd.<br>
>><br>
><br>
<br>
</blockquote></div>