Linux distributions
TMA-ROCKY9-2.1.21
Ensure X window server services are not in use
BajaNivel 2Automatizadalinux
Descripción
The X Window System provides a Graphical User Interface (GUI) where users can have multiple windows in which to run programs and various add-ons. The X Windows system is typically used on workstations where users login, but not on servers where users typically do not login.
Cómo se verifica
Método de auditoría: Comando de shell
shell
alt0() { command -v rpm >/dev/null 2>&1 || { echo "step1: rpm not installed"; return 1; }; o=$(bash -c 'rpm -q xorg-x11-server-common' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- 'package xorg-x11-server-common is not installed' || { echo step1: missing 'package xorg-x11-server-common is not installed'; return 1; }; }; if alt0; then echo compliant; fi- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
- IF - a Graphical Desktop Manager or X-Windows server is not required and approved by local site policy: Run the following command to remove the X Windows Server packages: # dnf remove xorg-x11-server-common
Propiedades
- Sistemas operativos
- rocky-9
- Etiquetas
- cis-convertedlinux
- Referencia
- CIS Rocky Linux 9 Benchmark v3.0.0 - 2.1.21
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target linux --level 2