3.5 Ensure that the /etc/docker directory ownership is set to root:root

Information

You should verify that the /etc/docker directory ownership and group ownership is correctly set to root

The /etc/docker directory contains certificates and keys in addition to various other sensitive files. It should therefore be individual owned and group owned by root in order to ensure that it can not be modified by less privileged users.

Solution

To resolve this issue you should run the following command:

chown root:root /etc/docker

This sets the ownership and group ownership for the directory to root

Impact:

None.

See Also

https://workbench.cisecurity.org/benchmarks/16041

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(2), 800-53|AC-6(5)

Plugin: Unix

Control ID: f21c7b2dc7ffdb6881fbbe42c7ec2a3fbfa8d84b027635dcea012457b45935ce