Set file system permissions
- Last Updated: February 23, 2024
- 2 minute read
- DataDirect Connectors
- JDBC
- Aha! 6.0
- Amazon Redshift 6.0
- Apache Cassandra 6.0
- Apache Hive 6.0
- Apache Spark SQL 6.0
- Atlassian Jira 6.0
- Autonomous REST Connector 6.0
- Cloudera Impala 5.1
- + 24
DataDirect for JDBC drivers sometimes require the ability to write data to disk to optimally perform operations. The most common scenario is the need to temporarily buffer data to disk when receiving large network responses that might exceed available memory; however, certain drivers may also require writing configuration files and schema information to disk. To protect your data, you should restrict access to directories to which the driver writes data or add those directories to a list of secured directories. This section will describe the directories to which the driver writes data.
Data temporarily buffered to disk
DD_TEMPenvironment variabledd.io.tmpdirsystem propertyjava.io.tmpdirsystem propertyNote: Note that the value of the Javatmpdirmay not be the same as the system temporary directory.
To better secure your environment, you should verify that each user has exclusive permissions to their own temp directory. Often on shared file systems, the temp directory is public, which is potentially unsafe.
Configuration files
A subset of the DataDirect for JDBC drivers employ a set of configuration files that define how the objects in the data source map to the set of tables presented by the driver. These files have the extensions .config, .script, and .native. Since these files control the behavior of the driver, access to the files should be restricted. The following drivers use configuration files:
|
|
|
The drivers use the following default locations to store configuration files. Note that you can change the location used to store configuration files using the SchemaMap property.
DD_HOMEenvironment variabledd.homesystem propertyLOCALAPPDATAenvironment variableAPPDATAenvironment variableuser.homesystem property
In the first available directory, the driver creates the files in a subdirectory that takes the following form:
<available_location>\Progress\DataDirect\<driver_name>_Schema
Access to the configuration files in this directory should be restricted to only the user under which the app using the driver is running.
~/progress/datadirect/<driver_name>_schema/Depending on the configuration of your system, the user's home folder might not be restricted by default. Access to the configuration files in this folder should be restricted to only the user(s) that are using the driver.