TMAegis
Više pravila za cos

TMA-COS-5.3.1.5

Ensure all users last password change date is in the past

VisokaNivo 1Automatskacos

Opis

All users should have a password change date in the past. If a users recorded password change date is in the future then they could bypass any set password expiration.

Kako se proverava

Metod provere: Komanda ljuske

shell
[ -r /etc/shadow ] || exit 1; t=$(( $(date +%s) / 86400 )); awk -F: -v t=$t '$2 ~ /^[^*!xX]/ && $3 != "" && $3+0 > t {f=1} END{exit f}' /etc/shadow && echo compliant || echo noncompliant
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Investigate any users with a password change date in the future and correct them. Locking the account, expiring the password, or resetting the password manually may be appropriate.

Svojstva

Operativni sistemi
Bilo koji
Oznake
authcontainer-optimized-oscos
Referenca
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target cos