summaryrefslogtreecommitdiff
path: root/config-users-base.PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'config-users-base.PKGBUILD')
-rw-r--r--config-users-base.PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/config-users-base.PKGBUILD b/config-users-base.PKGBUILD
new file mode 100644
index 0000000..72ffc35
--- /dev/null
+++ b/config-users-base.PKGBUILD
@@ -0,0 +1,22 @@
+pkgver=1
+pkgrel=1
+arch=(any)
+
+pkgname=config-users-base
+
+package() {
+cd "$pkgdir"
+
+install -dm755 etc
+install -dm750 etc/sudoers.d
+install -m644 /dev/stdin etc/sudoers.d/00-wheel <<EOF
+%wheel ALL=(ALL) ALL
+EOF
+
+install -Dm644 /dev/stdin etc/systemd/system/shadow.service.d/sort.conf <<EOF
+[Service]
+ExecStart=/bin/bash -c '/usr/bin/pwck -r && /usr/bin/pwck -s'
+ExecStart=/bin/bash -c '/usr/bin/grpck -r && /usr/bin/grpck -s'
+EOF
+
+}