IBM Db2
TMA-DB2-3.2.3
Disable Grants During Restore (DB2_RESTORE_GRANT_ADMIN_AUTHORITIES)
Beschreibung
The DB2_RESTORE_GRANT_ADMIN_AUTHORITIES registry variable determines whether the authorization ID of the user performing a restore is granted administrative authorities (SECADM, DBADM, DATAACCESS, and ACCESSCTRL authorities) on the restored database. It is typically used when restoring a database on a server where the original database creator account does not exist. It is recommended that ... Unset or OFF passes. Default: The default value of DB2_RESTORE_GRANT_ADMIN_AUTHORITIES is OFF. Run as the instance owner (or with sqllib/db2profile sourced) so the db2 CLP reads this instance's configuration.
So wird geprüft
Prüfmethode: Shell-Befehl
out=$(db2set -all 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '/^\[[a-zA-Z]\]/ { l = $0; sub(/^\[[a-zA-Z]\] */, "", l); k = l; sub(/=.*/, "", k); v = l; sub(/^[^=]*=/, "", v); gsub(/[ \t]/, "", v); if (!(k in r)) r[k] = v } END { if (!("DB2_RESTORE_GRANT_ADMIN_AUTHORITIES" in r) || toupper(r["DB2_RESTORE_GRANT_ADMIN_AUTHORITIES"]) == "OFF") print "compliant"; else print "noncompliant: " r["DB2_RESTORE_GRANT_ADMIN_AUTHORITIES"] }'- Erwartete Ausgabe
compliant
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Run the following command to set the DB2_RESTORE_GRANT_ADMIN_AUTHORITIES registry variable to OFF: db2set DB2_RESTORE_GRANT_ADMIN_AUTHORITIES=OFF
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- db2databaseregistryprivileges
- Referenz
- CIS IBM Db2 12.1 Benchmark v1.0.0 - 3.2.3 Disable Grants During Restore (DB2_RESTORE_GRANT_ADMIN_AUTHORITIES)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
tmaegis scan --target db2