# Cis Ubuntu1204 V110 2 6

> Bind Mount the /var/tmp directory to /tmp

- Skill: `cyberstrikeus/cis-ubuntu1204-v110-2-6` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-ubuntu1204-v110-2-6`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-ubuntu1204-v110-2-6/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cyberstrikeus (https://skillmd.com/u/cyberstrikeus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cyberstrikeus/cis-ubuntu1204-v110-2-6

---


# 2.6 Bind Mount the /var/tmp directory to /tmp (Scored)

## Profile Applicability

- Level 1

## Description

The `/var/tmp` directory is normally a standalone directory in the `/var` file system. Binding `/var/tmp` to `/tmp` establishes an unbreakable link to `/tmp` that cannot be removed (even by the root user). It also allows `/var/tmp` to inherit the same mount options that `/tmp` owns, allowing `/var/tmp` to be protected in the same manner `/tmp` is protected. It will also prevent `/var` from filling up with temporary files as the contents of `/var/tmp` will actually reside in the file system containing `/tmp`.

## Rationale

All programs that use `/var/tmp` and `/tmp` to read/write temporary files will always be written to the `/tmp` file system, preventing a user from running the `/var` file system out of space or trying to perform operations that have been blocked in the `/tmp` filesystem.

## Audit Procedure

### Using Command Line

```bash
grep -e "^/tmp" /etc/fstab | grep /var/tmp
mount | grep -e "^/tmp" | grep /var/tmp
```

## Expected Result

The expected output is:

```
/tmp /var/tmp none bind 0 0
/tmp on /var/tmp type none (rw,bind)
```

If the above commands emit no output then the system is not configured as recommended.

## Remediation

### Using Command Line

```bash
mount --bind /tmp /var/tmp
```

Edit the `/etc/fstab` file to contain the following line:

```
/tmp /var/tmp none bind 0 0
```

## Default Value

By default, `/var/tmp` is not bind mounted to `/tmp`.

## References

- CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0

## Profile

Level 1 - Scored

