From 2a2033d240edfd6cb2c75cf55ad00c90b19d4756 Mon Sep 17 00:00:00 2001 From: piernov Date: Sun, 5 Aug 2012 23:34:43 +0200 Subject: pambase dans base --- pambase/.footprint.i686 | 8 ++++++++ pambase/.footprint.x86_64 | 8 ++++++++ pambase/.md5sum.i686 | 6 ++++++ pambase/.md5sum.x86_64 | 6 ++++++ pambase/Pkgfile | 27 +++++++++++++++++++++++++++ pambase/other | 5 +++++ pambase/system-auth | 17 +++++++++++++++++ pambase/system-local-login | 6 ++++++ pambase/system-login | 20 ++++++++++++++++++++ pambase/system-remote-login | 6 ++++++ pambase/system-services | 11 +++++++++++ 11 files changed, 120 insertions(+) create mode 100644 pambase/.footprint.i686 create mode 100644 pambase/.footprint.x86_64 create mode 100644 pambase/.md5sum.i686 create mode 100644 pambase/.md5sum.x86_64 create mode 100755 pambase/Pkgfile create mode 100644 pambase/other create mode 100644 pambase/system-auth create mode 100644 pambase/system-local-login create mode 100644 pambase/system-login create mode 100644 pambase/system-remote-login create mode 100644 pambase/system-services diff --git a/pambase/.footprint.i686 b/pambase/.footprint.i686 new file mode 100644 index 000000000..9e2b34e3a --- /dev/null +++ b/pambase/.footprint.i686 @@ -0,0 +1,8 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/pam.d/ +-rw-r--r-- root/root etc/pam.d/other +-rw-r--r-- root/root etc/pam.d/system-auth +-rw-r--r-- root/root etc/pam.d/system-local-login +-rw-r--r-- root/root etc/pam.d/system-login +-rw-r--r-- root/root etc/pam.d/system-remote-login +-rw-r--r-- root/root etc/pam.d/system-services diff --git a/pambase/.footprint.x86_64 b/pambase/.footprint.x86_64 new file mode 100644 index 000000000..9e2b34e3a --- /dev/null +++ b/pambase/.footprint.x86_64 @@ -0,0 +1,8 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/pam.d/ +-rw-r--r-- root/root etc/pam.d/other +-rw-r--r-- root/root etc/pam.d/system-auth +-rw-r--r-- root/root etc/pam.d/system-local-login +-rw-r--r-- root/root etc/pam.d/system-login +-rw-r--r-- root/root etc/pam.d/system-remote-login +-rw-r--r-- root/root etc/pam.d/system-services diff --git a/pambase/.md5sum.i686 b/pambase/.md5sum.i686 new file mode 100644 index 000000000..ffe1c627b --- /dev/null +++ b/pambase/.md5sum.i686 @@ -0,0 +1,6 @@ +6e6c8719e5989d976a14610f340bd33a other +5f169a4ffe7ed69f58e106cdd2d760df system-auth +477237985820117a0e6e1b13a86eb599 system-local-login +17c691f2da319df8fe851bc47cc1d662 system-login +477237985820117a0e6e1b13a86eb599 system-remote-login +30fe7d41e054ee43fab7855bf88a07e5 system-services diff --git a/pambase/.md5sum.x86_64 b/pambase/.md5sum.x86_64 new file mode 100644 index 000000000..ffe1c627b --- /dev/null +++ b/pambase/.md5sum.x86_64 @@ -0,0 +1,6 @@ +6e6c8719e5989d976a14610f340bd33a other +5f169a4ffe7ed69f58e106cdd2d760df system-auth +477237985820117a0e6e1b13a86eb599 system-local-login +17c691f2da319df8fe851bc47cc1d662 system-login +477237985820117a0e6e1b13a86eb599 system-remote-login +30fe7d41e054ee43fab7855bf88a07e5 system-services diff --git a/pambase/Pkgfile b/pambase/Pkgfile new file mode 100755 index 000000000..7d056dbca --- /dev/null +++ b/pambase/Pkgfile @@ -0,0 +1,27 @@ +# Description: Configuration de base pour les services PAM. +# URL: http://piernov.org/git/nutyx-extra/tree/pambase +# Maintainer: piernov +# Packager: piernov +# Depends on: linux-pam +# Run on: linux-pam + +name=pambase +version=2012 +release=1 +source=(system-auth + system-local-login + system-login + system-remote-login + system-services + other) + +build() { + install -dm755 $PKG/etc/pam.d + install -m644 -t $PKG/etc/pam.d \ + system-auth \ + system-local-login \ + system-login \ + system-remote-login \ + system-services \ + other +} diff --git a/pambase/other b/pambase/other new file mode 100644 index 000000000..08498b423 --- /dev/null +++ b/pambase/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/pambase/system-auth b/pambase/system-auth new file mode 100644 index 000000000..b28a7e961 --- /dev/null +++ b/pambase/system-auth @@ -0,0 +1,17 @@ +#%PAM-1.0 + +auth required pam_env.so +auth required pam_unix.so try_first_pass nullok +auth optional pam_permit.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_env.so +session required pam_unix.so +session optional pam_permit.so diff --git a/pambase/system-local-login b/pambase/system-local-login new file mode 100644 index 000000000..347b8155b --- /dev/null +++ b/pambase/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/pambase/system-login b/pambase/system-login new file mode 100644 index 000000000..c3bfd7c79 --- /dev/null +++ b/pambase/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 required pam_env.so +session include system-auth +session optional pam_motd.so motd=/etc/motd +session optional pam_mail.so dir=/var/spool/mail standard +-session optional pam_ck_connector.so nox11 +-session optional pam_systemd.so diff --git a/pambase/system-remote-login b/pambase/system-remote-login new file mode 100644 index 000000000..347b8155b --- /dev/null +++ b/pambase/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/pambase/system-services b/pambase/system-services new file mode 100644 index 000000000..311c0d6d0 --- /dev/null +++ b/pambase/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_env.so +session required pam_unix.so +session optional pam_permit.so -- cgit v1.2.3-70-g09d2