TMAegisBeta
Aturan lainnya untuk ros

ROS (Robot Operating System)

TMA-ROS1-1.3.2

Ensure sudo commands use pty

SedangLevel 1Otomatisros

Deskripsi

sudo can be configured to run only from a psuedo-pty The audit requires "Defaults use_pty" in /etc/sudoers or /etc/sudoers.d/*. Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.

Cara pemeriksaan

Metode audit: Perintah shell

shell
grep -Pqs -- '^\s*Defaults\s+([^#]+,\s*)?use_pty(,\s*\S+\s*)*(\s+#.*)?$' /etc/sudoers /etc/sudoers.d/* && echo compliant || echo 'Defaults use_pty is not set'
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

edit the file /etc/sudoers or a file in /etc/sudoers.d/ and add the following line: Defaults use_pty

Properti

Sistem operasi
Apa saja
Tag
rosros1melodicsystem
Referensi
CIS ROS Melodic Benchmark v1.0.0 - 1.3.2 Ensure sudo commands use pty

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target ros