Problem
When I boot or shut down my UnixWare 7 or OpenServer 6 system, I see
errors that look like:initprivs: WARNING: File ''xxxx'' fails validation, entry ignoredHow can these warnings be fixed? Cause
There are several possible causes for the "initprivs" command to issue these warnings. When files are restored from backup media the /etc/security/tcb/privs data base is typically not adjusted to reflect the files restored, so problems are detected by the initprivs utility.
This has also been seen when applying a Maintenance Pack to a Unixware 7 or OpenServer6 release.
Solution
Running the command:/etc/security/tools/setpriv -xas root user will normally fix the /etc/security/tcb/privs data base
problems, and the "initprivs" warning messages should not be seen
any more.TROUBLESHOOTING:In addition, /var/sadm/install/contents contain the file content sizes and attributes of all files on the system based on the packages installed by pkgadd.
You can use "pkgchk" on it's own to check all the file contents and attributes of all the packages installed or "pkgchk -n" is the same.
# pkgchk -a Will check just the attributes (file permissions)# pkgchk -a -f Will fix these attributes (-v for verbose)It is recommended to only run this command if the file permissions of the server are compromised and should not be run as regular server maintenance.
It is recommended to run after:/etc/security/tools/setpriv -xCheck /var/sadm/install/logs for logging information on packages.
See also
Man pages: setpriv(1M), pkgchk(1M)