# CIS Ubuntu 14.04 LTS - 2.2.12 Ensure Samba is not enabled

> Verify that Samba SMB file sharing service is disabled when not required

- Skill: `cyberstrikeus/cis-ubuntu-14-04-lts-2-2-12-ensure-samba-is-not-enabled` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-ubuntu-14-04-lts-2-2-12-ensure-samba-is-not-enabled`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-ubuntu-14-04-lts-2-2-12-ensure-samba-is-not-enabled/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-ubuntu-14-04-lts-2-2-12-ensure-samba-is-not-enabled

---


# 2.2.12 Ensure Samba is not enabled (Scored)

## Profile Applicability

- Level 1 - Server
- Level 1 - Workstation

## Description

The Samba daemon allows system administrators to configure their Linux systems to share file systems and directories with Windows desktops. Samba will advertise the file systems and directories via the Small Message Block (SMB) protocol. Windows desktop users will be able to mount these directories and file systems as letter drives on their systems.

## Rationale

If there is no need to mount directories and file systems to Windows systems, then this service can be deleted to reduce the potential attack surface.

## Audit Procedure

Ensure no start conditions listed for `smbd`:

```bash
initctl show-config smbd
```

Verify the output shows `smbd` with no start conditions.

## Expected Result

The `smbd` service should have no start conditions listed.

## Remediation

Remove or comment out start lines in `/etc/init/smbd.conf`:

```bash
#start on (local-filesystems and net-device-up)
```

## Default Value

Samba is not enabled by default.

## References

- CIS Controls: 9.1 Limit Open Ports, Protocols, and Services

## Profile

- Level 1 - Server
- Level 1 - Workstation

