IBM AIX
TMA-AIX-5.3.8
Ensure user sys is secured
MediumLevel 1Automatedaix
Description
This change locks and disables login access for the sys user account. This change disables direct local and remote login to the sys user account. Do not set a password on this account to ensure that the only access is via su from the root account. There should not be a requirement to log in as the sys user directly. Audit: `lsuser -a account_locked login rlogin sys` must show true/false/false; an absent account is compliant.
How it is checked
Audit method: Shell command
shell
command -v lsuser >/dev/null 2>&1 || exit 1; lsuser sys >/dev/null 2>&1 || { echo compliant; exit 0; }; out=$(lsuser -a account_locked login rlogin sys 2>/dev/null); [ "$out" = "sys account_locked=true login=false rlogin=false" ] && echo compliant || echo "$out"- Expected output
compliant
How it is fixed
Fix method: Shell command
shell
chuser account_locked=true login=false rlogin=false sysProperties
- Operating systems
- Any
- Tags
- aixaccounts
- Reference
- CIS IBM AIX 7 Benchmark v1.2.0 - 5.3.8 Ensure user sys is secured
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target aix