InformationThe GNOME Display Manager (GDM) is a program that manages graphical display servers and handles graphical user logins.
If a Graphical User Interface (GUI) is not required, it should be removed to reduce the attack surface of the system.
Removing the GNOME Display manager will remove the GUI from the system.
SolutionRun the following command to remove the gdm package
# yum remove gdm