V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 58s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user