2.2.12 Ensure Samba is not enabled (Scored)

Level 1 - Server
Level 1 - Workstation 

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.

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.

Run the following commands to verify smbd is not enabled:

# systemctl is-enabled smbd

Verify result is not “enabled”.

Run the following command to disable smbd:

# systemctl disable smbd
  • ubuntu1604/2/2/12.txt
  • Last modified: 2017/05/02 11:52
  • by Piotr Kłoczewski