TMAegis
Više pravila za macos

macOS

TMA-MACOS-5.6

Ensure the "root" Account Is Disabled

VisokaNivo 1Automatskamacos

Opis

The root account is a superuser account that has access privileges to perform any actions and read/write to any file on the computer. With some versions of Linux, the system administrator may commonly use the root account to perform administrative functions. Previous versions of the benchmark included a graphical check for the audit and remediation as well as a different Terminal command for the remediation.

Kako se proverava

Metod provere: Komanda ljuske

shell
out=$(/usr/bin/dscl . -read /Users/root AuthenticationAuthority 2>&1)
printf '%s\n' "$out" | /usr/bin/grep -q "No such key: AuthenticationAuthority" && echo compliant
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Terminal: sudo /usr/bin/fdesetup remove -user root 2>/dev/null ; sudo /usr/bin/dscl /Local/Default delete /Users/root AuthenticationAuthority.

Svojstva

Operativni sistemi
macos-26
Oznake
macossystem-access
Referenca
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.6 Ensure the "root" Account Is Disabled

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 macos