TMAegis
yugabytedb 관련 규칙 더 보기

YugabyteDB

TMA-YUGABYTEDB-1.4

Ensure a separate user and group exist for YugabyteDB

보통레벨 2자동yugabytedb

설명

Create separate userid and group for YugabyteDB. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Passes when the yugabyte group and user exist and the user is a member of the group.

점검 방법

감사 방식: 셸 명령

shell
g=$(getent group yugabyte) || exit 1; u=$(getent passwd yugabyte) || exit 1; gid=$(printf '%s' "$g" | cut -d: -f3); ugid=$(printf '%s' "$u" | cut -d: -f4); members=$(printf '%s' "$g" | cut -d: -f4); if [ "$gid" = "$ugid" ] || printf '%s' ",$members," | grep -q ',yugabyte,'; then echo compliant; else echo 'user not in group'; fi
예상 출력
compliant

조치 방법

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

groupadd yugabyte; useradd -m -d /home/yugabyte -s /bin/bash -g yugabyte -u <UID> yugabyte (use an unused UID).

속성

운영 체제
모두
태그
yugabytedbservice-account
참고 자료
CIS YugabyteDB Benchmark v2.0.0 - 1.4 Ensure a separate user and group exist for YugabyteDB

이 호스트 점검하기

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

shell
tmaegis scan --target yugabytedb --level 2