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