From 2b4bd18ae09dbe7d1e0ea07c2ca0a7fe891c621e Mon Sep 17 00:00:00 2001 From: "Pawel Hajdan, Jr" Date: Tue, 20 Mar 2012 19:10:40 +0100 Subject: Add pam.d files for login, passwd and su. Those should be shared between shadow implementations. --- .gitignore | 3 +++ Makefile | 2 +- login.in | 6 ++++++ passwd.in | 6 ++++++ su.in | 12 ++++++++++++ 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 login.in create mode 100644 passwd.in create mode 100644 su.in diff --git a/.gitignore b/.gitignore index 81b97ba..2c63905 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +login +passwd +su system-auth system-login system-local-login diff --git a/Makefile b/Makefile index 31482e8..7d3e22a 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CPP=cpp # The pam.d file to create -PAMD=system-auth system-login system-local-login system-remote-login system-services other +PAMD=login passwd su system-auth system-login system-local-login system-remote-login system-services other # command for git (the DVCS); set this to "true" to ignore GIT support # (i.e.: in the ebuild) diff --git a/login.in b/login.in new file mode 100644 index 0000000..13abd27 --- /dev/null +++ b/login.in @@ -0,0 +1,6 @@ +auth required pam_securetty.so +auth include system-local-login + +account include system-local-login +password include system-local-login +session include system-local-login diff --git a/passwd.in b/passwd.in new file mode 100644 index 0000000..7eabf3d --- /dev/null +++ b/passwd.in @@ -0,0 +1,6 @@ +auth sufficient pam_rootok.so +auth include system-auth + +account include system-auth + +password include system-auth diff --git a/su.in b/su.in new file mode 100644 index 0000000..121bb9a --- /dev/null +++ b/su.in @@ -0,0 +1,12 @@ +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 + -- cgit v1.2.3-65-gdbad