1. Home
  2. Security Hardening
  3. CIS MySQL 5.7 Windows OS L1 V1.0.0
  4. Ensure ‘datadir’ Has Appropriate Permissions

Ensure ‘datadir’ Has Appropriate Permissions

Details

The data directory is the location of the MySQL databases.

NOTE : Update MYSQL_DATA to the appropriate value for your local environment.

Solution

Modify permissions for the ‘datadir’ to not include inheritance, like the following:

administrators:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’

creator owner:
+ Apply To: ‘subfolders and files only’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’

mysql or NETWORK SERVICE:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’

system:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’

Supportive Information

The following resource is also helpful.

This control applies to the following type of system Windows.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles