TMAegisBêta
Plus de règles pour cassandra

Apache Cassandra

TMA-CASSANDRA-1.1

Ensure a separate user and group exist for Cassandra

MoyenneNiveau 1Automatiséecassandra

Description

Create separate userid and group for Cassandra. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Passes when the cassandra group and user exist and the user is a member (primary or supplementary) of the group.

Méthode de vérification

Méthode d'audit: Commande shell

shell
g=$(getent group cassandra) || exit 1; u=$(getent passwd cassandra) || 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 ',cassandra,'; then echo compliant; else echo 'user not in group'; fi
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
cassandraservice-account
Référence
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.1 Ensure a separate user and group exist for Cassandra

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target cassandra