Skip to content

Samba

SMB file and print server that can also act as an Active Directory domain controller

Copyleft (OSI) · GPL-3.0
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

61

Health

Active

Overview

Stars

1,157

Last commit

today

Nov 2026

Repository age

11 years

since Jul 2015

Latest version

–

Contributors

–

9 active in 90 days

Releases

0

last 12 months

Language

C

Samba is the Windows interoperability suite for Linux and Unix. Since 1992 it has provided file and print services over SMB/CIFS to clients such as DOS, Windows, OS/2 and Linux. It is written in C and licensed under GPL-3.0.

Beyond file sharing, Samba can join Linux and Unix servers and desktops to Active Directory environments. It can work as a domain member or as an Active Directory domain controller. The project provides a full HOWTO for the domain controller setup, and a wiki, man pages and mailing lists for documentation and help.

It runs on Linux, and a Homebrew formula exists for macOS. You manage it from the command line and configuration files.

Samba is a self-hosted equivalent to Active Directory for organizations that want a compatible domain controller for Windows and Linux clients. It does not provide a SAML or OIDC provider, conditional access policies or SCIM provisioning.

Who it's for

Sysadmins running mixed Windows and Linux networks

One server shares files and printers to Windows clients and can serve as the domain controller.

Skip if: You need a graphical, cloud-managed directory service.

Organizations replacing a Windows domain controller

Its AD DC implementation is compatible with Windows and Linux clients, with a full HOWTO.

Skip if: You depend on conditional access or SCIM provisioning.

Linux admins adding servers to an existing AD domain

It lets Linux servers and desktops join Active Directory as regular domain members.

Skip if: You only need simple file sharing for a few Linux machines.

The problem it solves

Windows networks expect SMB file shares and Active Directory logins, which normally means Windows servers and licenses. Samba lets Linux and Unix machines provide both.

Strengths

  • Provides SMB/CIFS file and print services since 1992
  • Works as an Active Directory domain controller or domain member
  • Serves DOS, Windows, OS/2 and Linux clients
  • Documentation includes a wiki, man pages and a full AD DC HOWTO
  • 14 contributors in the last 90 days

Trade-offs

  • No built-in SAML or OIDC provider
  • No conditional access policies
  • No SCIM provisioning
  • Configuration is command line and file based

Self-host Samba

Self-hostable
Yes

Frequently asked questions

Is Samba free?

Yes. It is free software under GPL-3.0.

Can it act as a domain controller?

Yes. It can run as an Active Directory domain controller or as a regular domain member.

Which clients can connect?

Any SMB/CIFS client, including DOS, Windows, OS/2 and Linux.

Does it support SAML, OIDC or SCIM?

No. It has no built-in SAML or OIDC provider and no SCIM provisioning.

Similar tools in File sharing and transfer tools

Safebucket

File sharing and transfer tools

997 41 7 days ago Thriving Apache-2.0

DashBeam

File sharing and transfer tools

10k 628 3 days ago Thriving AGPL-3.0

Gokapi

File sharing and transfer tools

Self-hosted file sharing with expiring links, S3 storage and a REST API

3k 163 today Active AGPL-3.0

Replaces WeTransfer

Send

File sharing and transfer tools

Self-hosted encrypted file sharing with expiring links, in the spirit of Firefox Send

307 170 21 days ago Slowing mpl-2.0

Replaces WeTransfer

tessera

File sharing and transfer tools

Self-hosted file, folder and note sharing with expiring links, for teams and home servers

84 2 5 days ago Active AGPL-3.0

Replaces WeTransfer