Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
1.8.2 Ensure GDM login banner is configured (Automated)
Profile Applicability
Level 1 - Server
Level 1 - Workstation
Description
GDM is the GNOME Display Manager which handles graphical login for GNOME based systems.
Rationale
Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place.
Audit Procedure
Command Line
Run the following script to verify that the text banner on the login screen is enabled and set:
#!/usr/bin/env bash
{
l_pkgoutput=""ifcommand -v dpkg-query > /dev/null 2>&1; then
l_pq="dpkg-query -s"elifcommand -v rpm > /dev/null 2>&1; then
l_pq="rpm -q"fi
l_pcl="gdm gdm3"# Space separated list of packages to checkfor l_pn in$l_pcl; do$l_pq"$l_pn" > /dev/null 2>&1 && l_pkgoutput="$l_pkgoutput\n - Package: \"$l_pn\" exists on the system\n - checking configuration"doneif [ -n "$l_pkgoutput" ]; then
l_output="" l_output2=""echo -e "$l_pkgoutput"# Look for existing settings and set variables if they exist
l_gdmfile="$(grep -Prils '^\h*banner-message-enable\b' /etc/dconf/db/*.d)"
[ -n ];
l_gdmprofile=.
grep -Pisq ;
l_output=
l_output2=
l_lsbt=
[ -n ];
l_output=
l_output2=
grep -Pq /etc/dconf/profile/;
l_output=
l_output2=
[ -f ];
l_output=
l_output2=
l_output2=
_
-e
[ -z ];
-e
-e
[ -n ] && -e
}
if
"$l_gdmfile"
then
# Set profile name based on dconf db directory ({PROFILE_NAME}.d)
"$(awk -F\/ '{split($(NF-1),a,"
");print a[1]}' <<< "
$l_gdmfile
")"
# Check if banner message is enabled
if
'^\h*banner-message-enable=true\b'
"$l_gdmfile"
then
"$l_output\n - The \"banner-message-enable\" option is enabled in \"$l_gdmfile\""
else
"$l_output2\n - The \"banner-message-enable\" option is not enabled"