Group Permissions for Oracle Exachk Results Directories and Files

Note:

Not applicable to Microsoft Windows.

  1. During AHF installation, the installer runs the $ORACLE_HOME/bin/osdbagrp command to get the default operating system group and grants 750 permission to the default operating system group till the user_root directory.

    # 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_root
  2. Each time either orachk or exachk is 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 output
    • The 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 upload
    • The 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
  3. Use the ahfctl setosgroup command to change the default operating system group any time you want. This group change will reflect on the user_root directory. 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 dba command.

  4. Use the ahfctl getosgroup command to get the default operating system group configured.

    $ ahfctl getosgroup
    os_group: dba