Simon,
If there are many files with incorrect permissions, it is easiest to run
swverify(1M) with a wildcard that will check all the files on the system:
# swverify -v -x fix=true \*
For further information see the swverify man page:
fix=false If true, runs vendor-specific scripts to correct and
report problems on installed software. Fix scripts can
create missing directories, correct file modifications,
(mode, owner, group, major, minor), and recreate
symbolic links. If false, fix scripts are not run.
WK
Problem never ends, you must know how to fix it