From 5a41da5881a11ba3fdc3890c342aa3b7eb53e0cf Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Tue, 16 Dec 2025 13:27:11 -0500 Subject: add initial version (incomplete) --- gpg/.stow-local-ignore | 1 + gpg/dot-config/pam-gnupg | 2 ++ gpg/dot-gnupg/gpg-agent.conf | 6 ++++++ gpg/pambase_system-login.diff | 15 +++++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 gpg/.stow-local-ignore create mode 100644 gpg/dot-config/pam-gnupg create mode 100644 gpg/dot-gnupg/gpg-agent.conf create mode 100644 gpg/pambase_system-login.diff (limited to 'gpg') diff --git a/gpg/.stow-local-ignore b/gpg/.stow-local-ignore new file mode 100644 index 0000000..fc31db4 --- /dev/null +++ b/gpg/.stow-local-ignore @@ -0,0 +1 @@ +pambase_system-login.diff diff --git a/gpg/dot-config/pam-gnupg b/gpg/dot-config/pam-gnupg new file mode 100644 index 0000000..364d89b --- /dev/null +++ b/gpg/dot-config/pam-gnupg @@ -0,0 +1,2 @@ +8F55CFC45CAC18892A739C1F2B8BA796C07BFF8C +F029032D6539C360008FE088112ED8AF2D23F502 diff --git a/gpg/dot-gnupg/gpg-agent.conf b/gpg/dot-gnupg/gpg-agent.conf new file mode 100644 index 0000000..87f944f --- /dev/null +++ b/gpg/dot-gnupg/gpg-agent.conf @@ -0,0 +1,6 @@ +allow-preset-passphrase +enable-ssh-support +default-cache-ttl 60480000 +max-cache-ttl 60480000 +default-cache-ttl-ssh 60480000 +max-cache-ttl-ssh 60480000 diff --git a/gpg/pambase_system-login.diff b/gpg/pambase_system-login.diff new file mode 100644 index 0000000..10749bb --- /dev/null +++ b/gpg/pambase_system-login.diff @@ -0,0 +1,15 @@ +--- - 2025-11-25 13:45:42.634133151 -0500 ++++ /etc/pam.d/system-login 2025-11-25 13:37:28.156022632 -0500 +@@ -3,6 +3,7 @@ + auth required pam_shells.so + auth requisite pam_nologin.so + auth include system-auth ++auth optional pam_gnupg.so store-only + + account required pam_access.so + account required pam_nologin.so +@@ -19,3 +20,4 @@ + session optional pam_umask.so + -session optional pam_systemd.so + session required pam_env.so ++session optional pam_gnupg.so -- cgit v1.2.3-71-gdd5e