1.365 RHEL-10-700940

Information

RHEL 10 must not default to the graphical display manager unless approved.

GROUP ID: V-281297RULE ID: SV-281297r1166843

Unnecessary service packages must not be installed to decrease the attack surface of the system. Graphical display managers have a long history of security vulnerabilities and must not be used unless approved and documented.

Solution

Configure RHEL 10 to boot to the command line by setting the default target to "multi-user" with the following command:

$ sudo systemctl set-default multi-user.target

See Also

https://workbench.cisecurity.org/benchmarks/26403