From 9bd324869ef4a601a01b6cb58a0bd0e50c33ec92 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 3 Nov 2014 16:41:19 +0100 Subject: [PATCH] New package: pam-base with common pam files. --- srcpkgs/pam-base/files/other | 5 +++++ srcpkgs/pam-base/files/system-auth | 16 ++++++++++++++++ srcpkgs/pam-base/files/system-local-login | 6 ++++++ srcpkgs/pam-base/files/system-login | 20 ++++++++++++++++++++ srcpkgs/pam-base/files/system-remote-login | 6 ++++++ srcpkgs/pam-base/files/system-services | 11 +++++++++++ srcpkgs/pam-base/template | 22 ++++++++++++++++++++++ 7 files changed, 86 insertions(+) create mode 100644 srcpkgs/pam-base/files/other create mode 100644 srcpkgs/pam-base/files/system-auth create mode 100644 srcpkgs/pam-base/files/system-local-login create mode 100644 srcpkgs/pam-base/files/system-login create mode 100644 srcpkgs/pam-base/files/system-remote-login create mode 100644 srcpkgs/pam-base/files/system-services create mode 100644 srcpkgs/pam-base/template diff --git a/srcpkgs/pam-base/files/other b/srcpkgs/pam-base/files/other new file mode 100644 index 0000000000..08498b4235 --- /dev/null +++ b/srcpkgs/pam-base/files/other @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required pam_unix.so +account required pam_unix.so +password required pam_unix.so +session required pam_unix.so diff --git a/srcpkgs/pam-base/files/system-auth b/srcpkgs/pam-base/files/system-auth new file mode 100644 index 0000000000..2645043603 --- /dev/null +++ b/srcpkgs/pam-base/files/system-auth @@ -0,0 +1,16 @@ +#%PAM-1.0 + +auth required pam_unix.so try_first_pass nullok +auth optional pam_permit.so +auth required pam_env.so + +account required pam_unix.so +account optional pam_permit.so +account required pam_time.so + +password required pam_unix.so try_first_pass nullok sha512 shadow +password optional pam_permit.so + +session required pam_limits.so +session required pam_unix.so +session optional pam_permit.so diff --git a/srcpkgs/pam-base/files/system-local-login b/srcpkgs/pam-base/files/system-local-login new file mode 100644 index 0000000000..347b8155b8 --- /dev/null +++ b/srcpkgs/pam-base/files/system-local-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login diff --git a/srcpkgs/pam-base/files/system-login b/srcpkgs/pam-base/files/system-login new file mode 100644 index 0000000000..4ac1f9607c --- /dev/null +++ b/srcpkgs/pam-base/files/system-login @@ -0,0 +1,20 @@ +#%PAM-1.0 + +auth required pam_tally.so onerr=succeed file=/var/log/faillog +auth required pam_shells.so +auth requisite pam_nologin.so +auth include system-auth + +account required pam_access.so +account required pam_nologin.so +account include system-auth + +password include system-auth + +session optional pam_loginuid.so +session include system-auth +session optional pam_motd.so motd=/etc/motd +session optional pam_mail.so dir=/var/spool/mail standard quiet +-session optional pam_systemd.so +-session optional pam_ck_connector.so nox11 +session required pam_env.so diff --git a/srcpkgs/pam-base/files/system-remote-login b/srcpkgs/pam-base/files/system-remote-login new file mode 100644 index 0000000000..347b8155b8 --- /dev/null +++ b/srcpkgs/pam-base/files/system-remote-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login diff --git a/srcpkgs/pam-base/files/system-services b/srcpkgs/pam-base/files/system-services new file mode 100644 index 0000000000..6ed9bdc1d2 --- /dev/null +++ b/srcpkgs/pam-base/files/system-services @@ -0,0 +1,11 @@ +#%PAM-1.0 + +auth sufficient pam_permit.so + +account include system-auth + +session optional pam_loginuid.so +session required pam_limits.so +session required pam_unix.so +session optional pam_permit.so +session required pam_env.so diff --git a/srcpkgs/pam-base/template b/srcpkgs/pam-base/template new file mode 100644 index 0000000000..c49d361a2d --- /dev/null +++ b/srcpkgs/pam-base/template @@ -0,0 +1,22 @@ +# Template file for 'pam-base' +pkgname=pam-base +version=0.1 +revision=1 +noarch=yes +short_desc="PAM base configuration files" +maintainer="Juan RP " +license="public domain" +homepage="http://www.voidlinux.eu" + +conf_files=" + /etc/pam.d/other + /etc/pam.d/system-auth + /etc/pam.d/system-local-login + /etc/pam.d/system-login + /etc/pam.d/system-remote-login + /etc/pam.d/system-services" + +do_install() { + vmkdir etc/pam.d + install -m644 ${FILESDIR}/* ${DESTDIR}/etc/pam.d +}