cruegge / pam-gnupg

Unlock GnuPG keys on login
GNU General Public License v3.0
268 stars 12 forks source link

gpg-agent process is running but there is no socket #19

Closed vikigenius closed 4 years ago

vikigenius commented 4 years ago

I configured everything as instructed.

I am using lightdm so I added

auth     optional  pam_gnupg.so
session  optional  pam_gnupg.so

When I login using lightdm, I see in my process list that the gpg-agent process is running But if i try to run gpg-agent it says no sessions are running If I check in /run/user/1000 there is no socket being created. However if I manually start my gpg-agent, it creates another gpg-agent process and creates the socket in the right place.

vikigenius commented 4 years ago

An Update:

I am using a non systemd distro with elogind. I solved this by adding the 2 lines to the end of lightdm after the elogind modules are all loaded. Thus ensuring that the run/user folder is created.