ROS (Robot Operating System)
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 指令
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