TMA-ROS1-6.2.3
Ensure root is the only UID 0 account
CaoCấp 1Tự độngros
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Remove any users other than root with UID 0 or assign them a new UID if appropriate.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- rosros1melodicmaintenance
- Tham chiếu
- CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target ros