Securing $INFORMIXDIR and its subdirectories

When the $INFORMIXDIR directory is not secure, run a security script to reset directory permissions.

To secure the $INFORMIXDIR directory and its subdirectories, you can run the $INFORMIXDIR/etc/make-informixdir-secure script as user root or generate a security script to run with the onsecurity utility.

To generate a security script:

  1. Run the following command to generate the secure.sh script: $INFORMIXIDIR/bin/onsecurity -r $INFORMIXDIR
  2. Run the secure.sh script to secure the installation path:
    • UNIX and Linux: $INFORMIXDIR/tmp/secure.sh
    • Mac OS X:
    1. Open a terminal window.
    2. Use the sudo -s command to acquire user root privileges.
    3. Go to the directory with the command cd $INFORMIXDIR/tmp
    4. Run secure.sh
Although user informix has permission to run the script, the script cannot fix the problems unless the directory is owned by user informix. The database server message indicates what still must be fixed. The script also shows files and directories under $INFORMIXDIR that belong to an unexpected owner or group or have public write permission.

Copyright© 2020 HCL Technologies Limited