Chapter 4. Verifying permissions of IdM configuration files by using Healthcheck
You can test the ownership and permissions of configuration files on an Identity Management (IdM) server by using the Healthcheck tool.
For general information about the tool, see Healthcheck in IdM.
4.1. File permissions Healthcheck tests Copy linkLink copied to clipboard!
The Healthcheck tool tests the ownership and permissions of files installed or configured by Identity Management (IdM).
If you change the ownership or permissions of these files, the tests return a warning in the result section. While this does not necessarily mean that the configuration does not work, it means that the file differs from the default configuration.
You can find the file permissions tests under the ipahealthcheck.ipa.files source of the output of the ipa-healthcheck --list-sources command.
- IPAFileNSSDBCheck
-
This test checks the 389-ds NSS database and the Certificate Authority (CA) database, if relevant. The 389-ds database is located in
/etc/dirsrv/slapd-<dashed-REALM>and the CA database is located in/etc/pki/pki-tomcat/alias/. - IPAFileCheck
This test checks the following files:
-
/var/lib/ipa/ra-agent.{key|pem} -
/var/lib/ipa/certs/httpd.pem -
/var/lib/ipa/private/httpd.key -
/etc/httpd/alias/ipasession.key -
/etc/dirsrv/ds.keytab -
/etc/ipa/ca.crt -
/etc/ipa/custodia/server.keys -
/etc/resolv.conf /etc/hostsIf PKINIT is enabled, it also tests:
-
/var/lib/ipa/certs/kdc.pem /var/lib/ipa/private/kdc.keyIf DNS is configured, it also tests:
-
/etc/named.keytab -
/etc/ipa/dnssec/ipa-dnskeysyncd.keytab
-
- TomcatFileCheck
This test checks certain
tomcat-specific files:-
/etc/pki/pki-tomcat/password.conf -
/var/lib/pki/pki-tomcat/conf/ca/CS.cfg -
/etc/pki/pki-tomcat/server.xml
-
4.2. Screening configuration files by using Healthcheck Copy linkLink copied to clipboard!
You can run a standalone manual test to check the ownership and permissions of configuration files on an Identity Management (IdM) server by using the Healthcheck tool.
Procedure
To run Healthcheck tests on IdM configuration file ownership and permissions, while displaying only warnings, errors and critical issues, enter:
ipa-healthcheck --source=ipahealthcheck.ipa.files
# ipa-healthcheck --source=ipahealthcheck.ipa.filesCopy to Clipboard Copied! Toggle word wrap Toggle overflow A successful test displays empty brackets:
[]
[]Copy to Clipboard Copied! Toggle word wrap Toggle overflow Failed tests display results similar to the following
WARNING:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteRun these tests on all IdM servers when trying to find issues.