Linux distributions
TMA-ALINUX3-5.3.3.3.2
Ensure password history is enforced for the root user
OrtaDüzey 1Otomatiklinux
Açıklama
If the pwhistory enforce_for_root option is enabled, the module will enforce password history for the root user as well
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep -Pi -- '"'"'^\h*enforce_for_root\b'"'"' /etc/security/pwhistory.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- enforce_for_root || { echo step1: missing enforce_for_root; return 1; }; }; if alt0; then echo compliant; fi- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
Edit or add the following line in /etc/security/pwhistory.conf: enforce_for_root
Özellikler
- İşletim sistemleri
- alinux-3
- Etiketler
- cis-convertedlinux
- Referans
- CIS Alibaba Cloud Linux 3 Benchmark v2.0.0 - 5.3.3.3.2
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target linux