TMAegisBêta
Plus de règles pour linux

Linux distributions

TMA-UBUNTU2004-2.1.20

Ensure X window server services are not in use

FaibleNiveau 2Automatiséelinux

Description

The X Window System provides a Graphical User Interface (GUI) where users can have multiple windows in which to run programs and various add on. The X Windows system is typically used on workstations where users login, but not on servers where users typically do not login.

Méthode de vérification

Méthode d'audit: Commande shell

shell
alt0() { command -v dpkg-query >/dev/null 2>&1 || { echo "step1: dpkg-query not installed"; return 1; }; o=$(bash -c 'dpkg-query -s xserver-common &>/dev/null && echo "xserver-common is installed"' 2>/dev/null); [ -z "$o" ] || { echo "step1: $o" | head -c 300; return 1; }; }; if alt0; then echo compliant; fi
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

- 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 package: # apt purge xserver-common

Propriétés

Systèmes d'exploitation
ubuntu-20.04
Étiquettes
cis-convertedlinux
Référence
CIS Ubuntu Linux 20.04 LTS Benchmark v3.0.0 - 2.1.20

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target linux --level 2