dotfiles/crates/common/scripts/pam_wheel.sh

5 lines
233 B
Bash
Raw Normal View History

2025-02-26 03:05:18 +01:00
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
fi