From ea66e18b6f2e4e82a20d2515da150b7d0b2b419f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 8 Jan 2018 17:10:13 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 2 ++ pam.d/runuser | 8 ++++++++ pam.d/runuser-l | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 pam.d/runuser create mode 100644 pam.d/runuser-l diff --git a/.etckeeper b/.etckeeper index 2688d8b..1441826 100755 --- a/.etckeeper +++ b/.etckeeper @@ -682,6 +682,8 @@ maybe chmod 0644 'pam.d/other' maybe chmod 0644 'pam.d/passwd' maybe chmod 0644 'pam.d/pop' maybe chmod 0644 'pam.d/postgresql-9.6' +maybe chmod 0644 'pam.d/runuser' +maybe chmod 0644 'pam.d/runuser-l' maybe chmod 0644 'pam.d/saslauthd' maybe chmod 0644 'pam.d/shadow' maybe chmod 0644 'pam.d/sshd' diff --git a/pam.d/runuser b/pam.d/runuser new file mode 100644 index 0000000..30c2834 --- /dev/null +++ b/pam.d/runuser @@ -0,0 +1,8 @@ +auth sufficient pam_rootok.so +auth required pam_wheel.so use_uid +auth include system-auth +account include system-auth +password include system-auth +session include system-auth +session required pam_env.so +session optional pam_xauth.so diff --git a/pam.d/runuser-l b/pam.d/runuser-l new file mode 100644 index 0000000..7641435 --- /dev/null +++ b/pam.d/runuser-l @@ -0,0 +1,5 @@ +auth include system-local-login +account include system-local-login +password include system-local-login +session optional pam_lastlog.so +session include system-local-login -- 2.39.5