---
title: The containerd socket file should be owned by root
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The containerd socket file should be
  owned by root
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The containerd socket file should be owned by root
Classification:complianceFramework:cis-dockerControl:3.23 
## Description{% #description %}

The containerd socket should be owned by user root and group root.

## Rationale{% #rationale %}

Whoever can use the containerd socket controls every container of the host. Its owner can change it, so the owner and group should be root only.

## Audit{% #audit %}

Show the owner and group of `/run/containerd/containerd.sock`:

```bash
stat -c '%U:%G' /run/containerd/containerd.sock
```

Datadog passes the rule when `/run/containerd/containerd.sock` belongs to root:root, fails it when it belongs to another user or group, and reports it not applicable when the path is absent.

## Remediation{% #remediation %}

Set the owner and group:

```bash
chown root:root /run/containerd/containerd.sock
```

## Impact{% #impact %}

None.

## Default value{% #default-value %}

containerd creates its socket with owner root:root.
