TMAegis
Plus de règles pour ros

TMA-ROS1-6.2.3

Ensure root is the only UID 0 account

ÉlevéeNiveau 1Automatiséeros

Description

Any account with UID 0 has superuser privileges on the system. The audit requires root to be the only UID 0 account. Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.

Méthode de vérification

Méthode d'audit: Commande shell

shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"
Sortie attendue
compliant

Méthode de correction

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

Remove any users other than root with UID 0 or assign them a new UID if appropriate.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
rosros1melodicmaintenance
Référence
CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account

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 ros