V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 58s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-14 07:07:56 +02:00
parent 75f84414d3
commit 5ee4bf07eb

View File

@@ -619,7 +619,8 @@ BEGIN { done=0 }
' /etc/pam.d/login >| "${tmp}"
test -s "${tmp}"
mv -f "${tmp}" /etc/pam.d/login
[[ -f "${tmp}" ]] && rm -f "${tmp}"
rm -f "${tmp}" || :
:
EOF
### 2) If '/etc/pam.d/login' now has an active pam_access line, ensure '/etc/pam.d/sshd' pam_access line(s) are commented out.
@@ -636,8 +637,9 @@ if grep -Eq '^[[:space:]]*account[[:space:]]+required[[:space:]]+pam_access[.]so
' /etc/pam.d/sshd >| "${tmp}"
test -s "${tmp}"
mv -f "${tmp}" /etc/pam.d/sshd
[[ -f "${tmp}" ]] && rm -f "${tmp}"
fi
rm -f "${tmp}" || :
:
EOF
return 0