TMAegis
Више правила за ros

TMA-ROS1-6.2.3

Ensure root is the only UID 0 account

ВисокаНиво 1Аутоматскаros

Опис

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.

Како се проверава

Метод провере: Команда љуске

shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"
Очекивани излаз
compliant

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

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

Својства

Оперативни системи
Било који
Ознаке
rosros1melodicmaintenance
Референца
CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account

Проверите овај рачунар

Покрените ово на рачунару за који имате дозволу за проверу. Скенирање ради у режиму само за читање.

shell
tmaegis scan --target ros