SAMBA (Domain Controller) Server For Small Workgroups With Ubuntu 5.10 "Breezy Badger"

This is a "copy & paste" HowTo! The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where you have to provide own information like IP addresses, hostnames, passwords,...). This helps to avoid typos.

SAMBA (Domain Controller) Server For Small Workgroups With Ubuntu 5.10 "Breezy Badger"

Version 1.1
Author: Till Brehm <t.brehm [at] projektfarm [dot] com>

This is a detailed description about the steps to set up a Ubuntu based server (Ubuntu 5.10 - Breezy Badger) to act as file- and print server for Windows (tm) workstations in small workgroups. This howto uses the tdb backend for SAMBA to store passwords and account information. This is suitable for workgroups for up to 250 users and is easier to setup than an LDAP backend. A second howto covering the installation of LDAP + SAMBA will be published on HowtoForge soon.

Installed Software:

  • Samba as Domaincontroller
  • Cups
  • Foomatic printer drivers

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!


To install such a system you will need the following:

  • A Ubuntu install CD (available here:
  • An internet connection since I will describe a network installation in this document.

1 The Base System

Insert your Ubuntu install CD into your system and boot from it (enter server at the boot prompt to install only a base system suitable for servers).

The installation starts, and first you have to choose your language:

Chose your location:

Choose a keyboard layout:

The hardware detection starts:

Enter the hostname. In this example, my system is called, so I enter server1:

Share this page:

7 Comment(s)

Add comment


From: Anonymous

I am using ispconfig and samba together on one debian server.
Maybe nice idea for the future?

Sort expansion pack...

From: Anonymous

I was just wondering if you could do such a thing easily.  A good walk-through would be awesome, someone please write a howto on that.  (Or would just going through this howto and the "perfect setup" ISPConfig howto work?)

From: Anonymous

Yes. Do the perfect setup first, then jump in (around page 4) of this one to install samba. However, I don't recommend putting the server on the net (i.e. accessible outside your network).

From: Anonymous

The information provided here are usefull, but really only starting at page 4 of this howto. The first 3 pages should be entitled "how to install ubuntu".

From: Anonymous

This is the first howto I have come across, that is clear, easy to understand and that appears to work. I am very impressed. After weeks of trying to get SAMBA to work, following your instructions, I now have a working network.

There were a number of commands that did not appear to work, but they do not seem to have adversely affected the installation.

Many thanks


From: Anonymous

thanks for the great tutorial! any idea on when the ldap/samba tutorial will follow?