TMAegis
macos 관련 규칙 더 보기

TMA-MACOS-5.6

Ensure the "root" Account Is Disabled

높음레벨 1자동macos

설명

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.

점검 방법

감사 방식: 셸 명령

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
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

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

속성

운영 체제
macos-26
태그
macossystem-access
참고 자료
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.6 Ensure the "root" Account Is Disabled

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target macos