TMAegisBeta
Aturan lainnya untuk yugabytedb

YugabyteDB

TMA-YUGABYTEDB-1.4

Ensure a separate user and group exist for YugabyteDB

SedangLevel 2Otomatisyugabytedb

Deskripsi

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.

Cara pemeriksaan

Metode audit: Perintah shell

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
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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

Properti

Sistem operasi
Apa saja
Tag
yugabytedbservice-account
Referensi
CIS YugabyteDB Benchmark v2.0.0 - 1.4 Ensure a separate user and group exist for YugabyteDB

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target yugabytedb --level 2