TMA-LNX-PAM-MAXDAYS
Ensure password expiration is 365 days or less
OrtaDüzey 1Otomatiklinux
Açıklama
PASS_MAX_DAYS in /etc/login.defs should be 365 or less.
Nasıl denetlenir
Denetim yöntemi: Dosya deseni
- Dosya
/etc/login.defs- Desen
(?m)^\s*PASS_MAX_DAYS\s+([1-9]|[1-9]\d|[12]\d\d|3[0-5]\d|36[0-5])\s*$
Nasıl düzeltilir
Düzeltme yöntemi: Dosya düzenleme
- Dosya
/etc/login.defs- Değiştirilecek satır
PASS_MAX_DAYS 365
Özellikler
- İşletim sistemleri
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Etiketler
- passwordaccounts
- Referans
- CIS Linux Benchmark - User Accounts and Environment / Shadow Password Suite Parameters
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target linux