V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -39,13 +39,13 @@ installation_accounts() {
|
|||||||
rm -f "${TARGET}/etc/login.defs"
|
rm -f "${TARGET}/etc/login.defs"
|
||||||
insert_header "${TARGET}/etc/login.defs"
|
insert_header "${TARGET}/etc/login.defs"
|
||||||
insert_comments "${TARGET}/etc/login.defs"
|
insert_comments "${TARGET}/etc/login.defs"
|
||||||
cat "${VAR_SETUP_PATH}/target/includes/etc/login.defs" >> "${TARGET}/etc/login.defs"
|
cat "${VAR_SETUP_PATH}/includes/target/etc/login.defs" >> "${TARGET}/etc/login.defs"
|
||||||
|
|
||||||
### Hardening '/etc/security/pwquality.conf'
|
### Hardening '/etc/security/pwquality.conf'
|
||||||
rm -f "${TARGET}/etc/security/pwquality.conf"
|
rm -f "${TARGET}/etc/security/pwquality.conf"
|
||||||
insert_header "${TARGET}/etc/security/pwquality.conf"
|
insert_header "${TARGET}/etc/security/pwquality.conf"
|
||||||
insert_comments "${TARGET}/etc/security/pwquality.conf"
|
insert_comments "${TARGET}/etc/security/pwquality.conf"
|
||||||
cat "${VAR_SETUP_PATH}/target/includes/etc/security/pwquality.cnf" >> "${TARGET}/etc/security/pwquality.conf"
|
cat "${VAR_SETUP_PATH}/includes/target/etc/security/pwquality.cnf" >> "${TARGET}/etc/security/pwquality.conf"
|
||||||
|
|
||||||
### Preparing the root account
|
### Preparing the root account
|
||||||
chown root:root "${TARGET}/etc/passwd" "${TARGET}/etc/shadow" "${TARGET}/etc/group" "${TARGET}/etc/gshadow"
|
chown root:root "${TARGET}/etc/passwd" "${TARGET}/etc/shadow" "${TARGET}/etc/group" "${TARGET}/etc/gshadow"
|
||||||
@@ -55,7 +55,7 @@ installation_accounts() {
|
|||||||
if [[ -x "${TARGET}${user_root_shell}" ]]; then
|
if [[ -x "${TARGET}${user_root_shell}" ]]; then
|
||||||
chroot_exec "${TARGET}" chsh -s "${user_root_shell}" root
|
chroot_exec "${TARGET}" chsh -s "${user_root_shell}" root
|
||||||
else
|
else
|
||||||
do_log "warn" "file_only" "Shell: '${user_root_shell}' not found for: 'root'. Using '/bin/bash' instead."
|
do_log "warn" "file_only" "4500() Shell: '${user_root_shell}' not found for: 'root'. Using '/bin/bash' instead."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
var_chpasswd="root:${user_root_password}"
|
var_chpasswd="root:${user_root_password}"
|
||||||
|
|||||||
Reference in New Issue
Block a user