add: pam stuff

This commit is contained in:
Strix 2023-10-14 22:38:14 +02:00
parent bf6f76c215
commit 22c1e0eb6a
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -5,4 +5,8 @@ scripts="@distro @self"
super_apply() { super_apply() {
cp files/sudoers /etc/sudoers 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
} }