TMAegis
linux のその他のルール

TMA-LNX-PAM-MAXDAYS

Ensure password expiration is 365 days or less

中レベル 1自動linux

説明

PASS_MAX_DAYS in /etc/login.defs should be 365 or less.

チェック方法

監査方法: ファイルパターン

ファイル
/etc/login.defs
パターン
(?m)^\s*PASS_MAX_DAYS\s+([1-9]|[1-9]\d|[12]\d\d|3[0-5]\d|36[0-5])\s*$

修正方法

修正方法: ファイル編集

ファイル
/etc/login.defs
置換後の行
PASS_MAX_DAYS 365

プロパティ

オペレーティングシステム
ubuntu-22.04, ubuntu-24.04, rocky-9
タグ
passwordaccounts
参照
CIS Linux Benchmark - User Accounts and Environment / Shadow Password Suite Parameters

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target linux