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.

Solution

Execute the following commands at a terminal prompt:
chmod 700 <datadir>
chown mysql:mysql <datadir>

See Also

https://benchmarks.cisecurity.org/tools2/mysql/CIS_Oracle_MySQL_Enterprise_Edition_5.6_Benchmark_v1.0.0.pdf

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|3.1

Plugin: Unix

Control ID: c06dc1fc7576ee7266da5b996b59e2ec833d39481eb3f942c88889cc86a4e0c7