Group Permissions for Oracle Exachk Results Directories and Files
Note:
Not applicable to Microsoft Windows.
During AHF installation, the installer runs the
$ORACLE_HOME/bin/osdbagrpcommand to get the default operating system group and grants 750 permission to the default operating system group till theuser_rootdirectory.# cat install.properties | grep EXACHK_DATA_DIR EXACHK_DATA_DIR=/opt/oracle.ahf/data/adcs/exachk# ls -l /opt/oracle.ahf/data/adcs/exachk | grep user_root drwxr-x--t 4 root dba 4096 May 18 14:34 user_rootEach time either
orachkorexachkis run,The default operating system group is set with permission 750 on the output directory and the directories within it.
# ls -l /opt/oracle.ahf/data/adcs/exachk/user_root | grep output drwxr-x--t 5 root dba 4096 May 22 08:27 outputThe default operating system group is set with permission 750 on the upload directory.
# ls -lrt /opt/oracle.ahf/data/adcs/exachk/user_root/output/<collection_dir> | grep upload drwxr-x--- 2 root dba 4096 May 23 06:32 uploadThe default operating system group is set with permission 640 on all of the JSON files within the upload direcoty.
# ls -lrt /opt/oracle.ahf/data/adcs/exachk/user_root/output/exachk_adcs_rac19c_052322_063119/upload | grep .*.json -rw-r----- 1 root dba 3068 May 23 06:32 exachk_summary.json -rw-r----- 1 root dba 2463 May 23 06:32 adcs_exachk_valid_results.json -rw-r----- 1 root dba 5675 May 23 06:32 check_env.json
- Use the
ahfctl setosgroupcommand to change the default operating system group any time you want. This group change will reflect on theuser_rootdirectory. Similarly, the respective runs will have the new group.ahfctl setosgroup [-h] [-group GROUP]For example, to set the default operating system group to dba, run the
ahfctl setosgroup -group dbacommand. Use the
ahfctl getosgroupcommand to get the default operating system group configured.$ ahfctl getosgroup os_group: dba