TMAegisBeta
Más reglas para aix

IBM AIX

TMA-AIX-4.6.1.10

Ensure the file /etc/dt/config/Xservers is configured

MediaNivel 1Automatizadaaix

Descripción

The /etc/dt/config/Xservers contains entries to start the Xserver on the local display. Ensure this file is owned by root:bin and prevents group and other from writing to it. The /etc/dt/config/Xservers contains entries to start the Xserver on the local display. The default file, /usr/dt/config/Xservers, is unconditionally overwritten upon subsequent installation. Audit: compares `ls -ld` mode (or more restrictive), owner and group; an absent file is compliant.

Cómo se verifica

Método de auditoría: Comando de shell

shell
r=compliant; for f in /etc/dt/config/Xservers; do if [ -e "$f" ]; then set -- $(ls -ld "$f"); s=$(printf '%s %s %s\n' "$1" "$3" "$4" | awk -v m='rw-r--r--' -v o='root' -v g='bin' '{ok=1; for(i=1;i<=9;i++) if(substr(m,i,1)=="-" && substr($1,i+1,1)!="-") ok=0; if(o!="" && $2 !~ ("^(" o ")$")) ok=0; if(g!="" && $3 !~ ("^(" g ")$")) ok=0; print (ok ? "ok" : $0)}'); [ "$s" = ok ] || r="$f: $s"; else :; fi; done; echo "$r"
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Check to see if the /etc/dt/config/Xservers exists: ls -l /etc/dt/config/Xservers If it exists ensure that it is explicitly defined in /etc/dt/config/Xconfig: vi /etc/dt/config/Xconfig Replace: Dtlogin*servers: Xservers With: Dtlogin*servers: /etc/dt/config/Xservers Apply the appropriate ownership and permissions to /etc/dt/config/Xservers: chown root:bin /etc/dt/config/Xservers chmod go-w /etc/dt/config/Xservers

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
aixservices
Referencia
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.1.10 Ensure the file /etc/dt/config/Xservers is configured

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target aix