V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m30s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m30s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -856,7 +856,7 @@ user:
|
|||||||
password: true # Allow password login. SSH password login is always disabled.
|
password: true # Allow password login. SSH password login is always disabled.
|
||||||
2fa:
|
2fa:
|
||||||
ssh: false # Require 2FA for SSH access.
|
ssh: false # Require 2FA for SSH access.
|
||||||
tty: false # Require 2FA for TTY (local console) login.
|
tty: true # Require 2FA for TTY (local console) login.
|
||||||
privileges:
|
privileges:
|
||||||
description: "Root user with full system access and administrative privileges."
|
description: "Root user with full system access and administrative privileges."
|
||||||
restricted: false # If true, the user is limited in scope (e.g., no login, no file access, --no-create-home)
|
restricted: false # If true, the user is limited in scope (e.g., no login, no file access, --no-create-home)
|
||||||
@@ -885,8 +885,8 @@ user:
|
|||||||
tty: true # Allow TTY (local console) login.
|
tty: true # Allow TTY (local console) login.
|
||||||
password: true # Allow password login. SSH password login is always disabled.
|
password: true # Allow password login. SSH password login is always disabled.
|
||||||
2fa:
|
2fa:
|
||||||
ssh: false # Require 2FA for SSH access.
|
ssh: true # Require 2FA for SSH access.
|
||||||
tty: false # Require 2FA for TTY (local console) login.
|
tty: true # Require 2FA for TTY (local console) login.
|
||||||
privileges:
|
privileges:
|
||||||
description: "Primary admin user with full sudo access and interactive login."
|
description: "Primary admin user with full sudo access and interactive login."
|
||||||
sudo: true # Whether the user can escalate to root using sudo.
|
sudo: true # Whether the user can escalate to root using sudo.
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ accounts_hardening() {
|
|||||||
|
|
||||||
### Preparing 2fa hardening.
|
### Preparing 2fa hardening.
|
||||||
install -d -m 0755 -o root -g root "${var_target}/etc/ciss"
|
install -d -m 0755 -o root -g root "${var_target}/etc/ciss"
|
||||||
touch "${var_target}/etc/ciss/2fa.users"
|
insert_header "${var_target}/etc/ciss/2fa.users"
|
||||||
chmod 0600 "${var_target}/etc/ciss/2fa.users"
|
insert_comments "${var_target}/etc/ciss/2fa.users"
|
||||||
|
chmod 0600 "${var_target}/etc/ciss/2fa.users"
|
||||||
|
|
||||||
### Keep 'tty1' active, disable the rest.
|
### Keep 'tty1' active, disable the rest.
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
|
|||||||
Reference in New Issue
Block a user