From 22c1e0eb6a4c6d9ba04e899085b65cca053b0a15 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:14 +0200 Subject: [PATCH] add: pam stuff --- crates/00-system/crate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/00-system/crate.sh b/crates/00-system/crate.sh index 5519bcb..10d248e 100644 --- a/crates/00-system/crate.sh +++ b/crates/00-system/crate.sh @@ -5,4 +5,8 @@ scripts="@distro @self" super_apply() { cp files/sudoers /etc/sudoers + if [ -f /usr/lib/security/pam_wheel.so ] && ! grep -q "# pam_wheel.so added" /etc/pam.d/su; then + echo "auth sufficient pam_wheel.so trust use_uid" > /etc/pam.d/su + echo "# pam_wheel.so added" > /etc/pam.d/su + done } \ No newline at end of file