TMA-ROS1-6.2.3
Ensure root is the only UID 0 account
TinggiLevel 1Otomatisros
Deskripsi
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.
Cara pemeriksaan
Metode audit: Perintah shell
shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"- Output yang diharapkan
compliant
Cara perbaikan
Metode perbaikan: Panduan atau patch infrastruktur
Remove any users other than root with UID 0 or assign them a new UID if appropriate.
Properti
- Sistem operasi
- Apa saja
- Tag
- rosros1melodicmaintenance
- Referensi
- CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account
Periksa host ini
Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.
shell
tmaegis scan --target ros