TMAegis베타
yugabytedb 관련 규칙 더 보기

YugabyteDB

TMA-YUGABYTEDB-1.6

Ensure the YugabyteDB service is run as a non-root user

높음레벨 2자동yugabytedb

설명

Though YugabyteDB database may be run as root, it should run as another non-root user. Passes when every running yb-master / yb-tserver process runs as a non-root account (FAIL when none are running).

점검 방법

감사 방식: 셸 명령

shell
out=$(ps -eo user=,comm= 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '$2 == "yb-master" || $2 == "yb-tserver" {n++; if ($1 == "root") r++} END {if (n == 0) print "not running"; else if (r > 0) print "root"; else print "compliant"}'
예상 출력
compliant

조치 방법

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

Create a dedicated yugabyte user and group, chown the installation and fs_data_dirs to it and start yb-master/yb-tserver as that user (User=yugabyte in the service unit).

속성

운영 체제
모두
태그
yugabytedbservice-account
참고 자료
CIS YugabyteDB Benchmark v2.0.0 - 1.6 Ensure the YugabyteDB service is run as a non-root user

이 호스트 점검하기

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

shell
tmaegis scan --target yugabytedb --level 2