summaryrefslogtreecommitdiff
path: root/nonsystemd/pambase
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-05-29 01:31:42 -0400
committerDavid P <megver83@parabola.nu>2020-05-29 01:31:42 -0400
commit54f51d134250eed19366fc5b7a2a465eac45dbc9 (patch)
tree82671f00f9f75dbacf56ce88f065d963a0a6cd87 /nonsystemd/pambase
parent998c38f039a6d3d5556d523c2f36c13f44b8afb3 (diff)
downloadabslibre-54f51d134250eed19366fc5b7a2a465eac45dbc9.tar.gz
abslibre-54f51d134250eed19366fc5b7a2a465eac45dbc9.tar.bz2
abslibre-54f51d134250eed19366fc5b7a2a465eac45dbc9.zip
addpkg: nonsystemd/pambase 20190105.1-2.nonsystemd1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/pambase')
-rw-r--r--nonsystemd/pambase/PKGBUILD37
-rw-r--r--nonsystemd/pambase/other9
-rw-r--r--nonsystemd/pambase/system-auth16
-rw-r--r--nonsystemd/pambase/system-local-login6
-rw-r--r--nonsystemd/pambase/system-login21
-rw-r--r--nonsystemd/pambase/system-remote-login6
-rw-r--r--nonsystemd/pambase/system-services11
7 files changed, 106 insertions, 0 deletions
diff --git a/nonsystemd/pambase/PKGBUILD b/nonsystemd/pambase/PKGBUILD
new file mode 100644
index 000000000..ebce9502c
--- /dev/null
+++ b/nonsystemd/pambase/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Arch): Dave Reisner <dreisner@archlinux.org>
+
+pkgname=pambase
+pkgver=20190105.1
+pkgrel=2
+pkgrel+=.nonsystemd1
+pkgdesc="Base PAM configuration for services"
+arch=('any')
+depends=('opensysusers')
+url="https://www.artixlinux.org"
+license=('GPL')
+source=('system-auth'
+ 'system-local-login'
+ 'system-login'
+ 'system-remote-login'
+ 'system-services'
+ 'other')
+backup=('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'
+ 'etc/pam.d/other')
+sha256sums=('3eb67872e436817ec97c4f3795adba2cf1d3829ea4e107ef5747569e4eeb5746'
+ '005736b9bd650ff5e5d82a7e288853776d5bb8c90185d5774c07231c1e1c64a9'
+ 'b6eb59f7aaee4b168f70df8e1b941eb533f6f73dbea8beb6457537106c32fde8'
+ '005736b9bd650ff5e5d82a7e288853776d5bb8c90185d5774c07231c1e1c64a9'
+ '6eb1acdd3fa9f71a7f93fbd529be57ea65bcafc6e3a98a06af4d88013fc6a567'
+ 'd5ed59ec2157c19c87964a162f7ca84d53c19fb2bd68d3fbc1671ba8d906346f')
+
+package() {
+ install -dm755 "$pkgdir/etc/pam.d"
+ install -m644 -t "$pkgdir/etc/pam.d" "${source[@]}"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/nonsystemd/pambase/other b/nonsystemd/pambase/other
new file mode 100644
index 000000000..3f50bd1c9
--- /dev/null
+++ b/nonsystemd/pambase/other
@@ -0,0 +1,9 @@
+#%PAM-1.0
+auth required pam_deny.so
+auth required pam_warn.so
+account required pam_deny.so
+account required pam_warn.so
+password required pam_deny.so
+password required pam_warn.so
+session required pam_deny.so
+session required pam_warn.so
diff --git a/nonsystemd/pambase/system-auth b/nonsystemd/pambase/system-auth
new file mode 100644
index 000000000..264504360
--- /dev/null
+++ b/nonsystemd/pambase/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/nonsystemd/pambase/system-local-login b/nonsystemd/pambase/system-local-login
new file mode 100644
index 000000000..347b8155b
--- /dev/null
+++ b/nonsystemd/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/nonsystemd/pambase/system-login b/nonsystemd/pambase/system-login
new file mode 100644
index 000000000..79493ab45
--- /dev/null
+++ b/nonsystemd/pambase/system-login
@@ -0,0 +1,21 @@
+#%PAM-1.0
+
+auth required pam_tally2.so onerr=succeed file=/var/log/tallylog
+auth required pam_shells.so
+auth requisite pam_nologin.so
+auth include system-auth
+
+account required pam_tally2.so
+account required pam_access.so
+account required pam_nologin.so
+account include system-auth
+
+password include system-auth
+
+session optional pam_loginuid.so
+session optional pam_keyinit.so force revoke
+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_elogind.so
+session required pam_env.so
diff --git a/nonsystemd/pambase/system-remote-login b/nonsystemd/pambase/system-remote-login
new file mode 100644
index 000000000..347b8155b
--- /dev/null
+++ b/nonsystemd/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/nonsystemd/pambase/system-services b/nonsystemd/pambase/system-services
new file mode 100644
index 000000000..6ed9bdc1d
--- /dev/null
+++ b/nonsystemd/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_unix.so
+session optional pam_permit.so
+session required pam_env.so