TMA-ROS1-6.2.3
Ensure root is the only UID 0 account
VisokaNivo 1Automatskaros
Opis
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.
Kako se proverava
Metod provere: Komanda ljuske
shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"- Očekivani izlaz
compliant
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Remove any users other than root with UID 0 or assign them a new UID if appropriate.
Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- rosros1melodicmaintenance
- Referenca
- CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target ros