---
myst:
html_meta:
description: Configure Samba on Ubuntu Server as an Active Directory Domain Controller, file server, or print server with share access controls.
---
(how-to-samba)=
# Samba
A Samba server can be deployed as a full Active Directory Domain Controller (Samba AD/DC), providing authentication to domain users -- whether Linux or Windows.
```{toctree}
:titlesonly:
Set up a Samba AD Domain Controller
Join an Active Directory domain
```
## Set up sharing services
Samba can be configured as a file server or print server, to share files and printers with Windows clients.
```{toctree}
:titlesonly:
Set up a file server
Set up a print server
```
## Access controls
```{toctree}
:titlesonly:
Share access controls
Create AppArmor profile
Mount CIFS shares permanently
```
## Legacy options
These options are now deprecated, but still available.
```{toctree}
:titlesonly:
NT4 domain controller
OpenLDAP backend
```
## See also
* Explanation: {ref}`introduction-to-samba`