add: pam stuff
This commit is contained in:
parent
bf6f76c215
commit
22c1e0eb6a
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
Loading…
Reference in a new issue