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}"
|
' /etc/pam.d/login >| "${tmp}"
|
||||||
test -s "${tmp}"
|
test -s "${tmp}"
|
||||||
mv -f "${tmp}" /etc/pam.d/login
|
mv -f "${tmp}" /etc/pam.d/login
|
||||||
[[ -f "${tmp}" ]] && rm -f "${tmp}"
|
rm -f "${tmp}" || :
|
||||||
|
:
|
||||||
EOF
|
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.
|
### 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}"
|
' /etc/pam.d/sshd >| "${tmp}"
|
||||||
test -s "${tmp}"
|
test -s "${tmp}"
|
||||||
mv -f "${tmp}" /etc/pam.d/sshd
|
mv -f "${tmp}" /etc/pam.d/sshd
|
||||||
[[ -f "${tmp}" ]] && rm -f "${tmp}"
|
|
||||||
fi
|
fi
|
||||||
|
rm -f "${tmp}" || :
|
||||||
|
:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user