Work in progress

This page is a work in progress. It contains known errors and mistakes. Don't use this how-to while this notice in in place unless you are contributing to improving it.


The Samba domain forms the basis is most of the Small Business Server. All integration for all of our systems are based on having the domain server properly configured.

This tutorial is similar to other SAMBA tutorials, but it is specific to installing a samba DC for a small office. That means that the choices made and the examples used are specific to getting a Small Business Server up and running. These same choices may not be appropriate for other settings. This tutorial is not a general Samba tutorial.

Assumptions and Variables

  • The companies name is <Office Enterprises>

  • The Lan's IP network is: <>

  • The Router/Gateway's Lan IP address is: <>

  • The Main Server's IP address is: <>

  • The domain name is: <office.lan>

  • The realm is: <OFFICE.LAN>

  • The Long-term release used is: <Ubuntu 20.04>

Install Samba

The following are the steps necessary to install Samba on a fresh install of Ubuntu 20.04. It is strongly suggested that you ONLY follow this tutorial on a fresh install of Ubuntu, as these steps may fail on a system that has had Samba installed previously.

Preparing for the Installation

The following steps will get your server ready for installing Samba:

Disable DHCP on the Router

If you have not already done so, ensure that you have disabled DHCP on the router.

If you have not already done so, see link

Double check that you do not have Samba running on the system

Use the following command to ensure that you don't already have Samba running on your system:

# ps ax | egrep "samba|smbd|nmbd|winbindd"

If the output of that command lists any samba, smbd, nmbd, or winbindd processes, then you already have Samba installed and you will need to remove it before continuing.

Edit /etc/hosts

We need to make sure the /etc/hosts file on the DC1 server correctly resolves the fully-qualified domain name (FQDN) and short host name to the LAN IP address of DC1.

# sudo nano

The contents of the file should look like this:     localhost     DC1

(if the file contains other values, we should change them to match the example above)

Update packages

The first thing we need to do is update our packages database from the repositories:

# sudo apt-get update

After we have updated the package database, we need to upgrade to the latest versions of all packages using the following command:

# sudo apt-get upgrade

Install packages

Now we need to install all of the packages Samba will need. We can do that using the following command:

# apt-get install acl attr samba samba-dsdb-modules samba-vfs-modules winbind libpam-winbind libnss-winbind libpam-krb5 krb5-config krb5-user dnsutils ntp

You have now completed the installation of Samba. The next step is to configure and provision the Samba domain.

SmallBusinessServer/SAMBA/Install (last edited 2021-03-19 11:41:11 by 5g3-steven-7tv)