3.1.4 Secure Permissions for All Diagnostic Logs (DIAGPATH)

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The DIAGPATH parameter specifies the location of the diagnostic files for the Db2 instance. The directory at this location should be secured so that users have read and execute privileges only (no write privileges). All Db2 administrators should have full access to the directory.

Rationale:

Securing the directory will ensure that the confidentiality, integrity, and availability of the diagnostic files contained in the directory are preserved.

Solution

For Windows and Linux
To change the directory for the diagnostic logs:

Attach to the Db2 instance

db2 => attach to <db2instance>

Run the following command:

db2 => update database manager configuration using diagpath <valid directory>

Additional steps for Windows:

Connect to the Db2 host

Right-click over the diagnostic log directory

Choose Properties

Select the Security tab

Grant the Full Control authority to all Db2 administrator accounts

Grant only read and execute privileges to all other accounts (revoke any other privileges)

Additional steps for Linux:

Connect to the Db2 host

Change to the diagnostic log directory

Change the permissions of the directory

$ chmod -R 755

See Also

https://workbench.cisecurity.org/files/4033