V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -1245,6 +1245,16 @@ readonly -f zsh_omz_installer
|
||||
# Arguments:
|
||||
# None
|
||||
#######################################
|
||||
|
||||
#######################################
|
||||
# Writes CISS Header for '/etc/pam.d/sshd'.
|
||||
# Globals:
|
||||
# None
|
||||
# Arguments:
|
||||
# 1: TARGET
|
||||
# Returns:
|
||||
# 0: on success
|
||||
#######################################
|
||||
write_pam_sshd() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -r var_target="$1"
|
||||
@@ -1330,6 +1340,15 @@ session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||
EOF
|
||||
|
||||
do_log "info" "file_only" "4520() Written: [/etc/pam.d/sshd]."
|
||||
|
||||
cat << 'EOF' >| "${var_target}/etc/ciss/ssh_totp.prompt"
|
||||
Please enter your 6-digit TOTP code for %u@%H.
|
||||
EOF
|
||||
chmod 0444 "${var_target}/etc/ciss/ssh_totp.prompt"
|
||||
do_log "info" "file_only" "4520() Written: [/etc/ciss/ssh_totp.prompt]."
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user