On Fri, Jun 06, 2014 at 10:41:24AM -0700, Patrick Burroughs (Celti) wrote:
On Fri, Jun 6, 2014 at 10:14 AM, Magnus Therning <magnus@therning.org> wrote:
I have a feeling this ought to be solvable using systemd but I can't really see how. Writing a service for gpg-agent is not that difficult, and it creates the required environment file without problems. But, how do I hook it in to the user login in the right way? Who should be wanting my gpg-agent.service, and then load the generated file using EnvironmentFile=?
Rather than starting it purely with systemd, have you looked into using Envoy [1] and using its PAM module to ensure it gets propagated to the entire login session?
Thanks. I did the following - start the systemd service envoy@ssh-agent.socket - add pam_envoy.so to /etc/pam.d/system-login That got it working for ssh, but not for gpg. Is there something else I should do to also get gpg-agent support? /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay