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
修正方法
修正方法: ガイダンスまたは IaC パッチ
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