3.1 Ensure 'datadir' Has Appropriate Permissions

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

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_USER 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'

See Also

https://workbench.cisecurity.org/files/1617