TMAegisBeta
Weitere Regeln für aix

IBM AIX

TMA-AIX-4.6.1.10

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

MittelStufe 1Automatisiertaix

Beschreibung

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.

So wird geprüft

Prüfmethode: Shell-Befehl

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"
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
Beliebig
Tags
aixservices
Referenz
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.1.10 Ensure the file /etc/dt/config/Xservers is configured

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target aix