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

Want to support HowtoForge? Become a subscriber!
Submitted by till (Contact Author) (Forums) on Sat, 2006-01-07 17:26. :: Samba | Storage

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>
Last edited 01/07/2006

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:

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by bcwhite (registered user) on Thu, 2006-11-30 17:04.
Submitted by Anonymous (not registered) on Fri, 2006-03-31 15:25.
thanks for the great tutorial! any idea on when the ldap/samba tutorial will follow?
Submitted by Anonymous (not registered) on Fri, 2006-02-24 13:02.

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


Submitted by Anonymous (not registered) on Mon, 2006-02-20 14:58.
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".
Submitted by Anonymous (not registered) on Wed, 2006-01-25 22:30.

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

Sort expansion pack...

Submitted by Anonymous (not registered) on Fri, 2006-07-28 02:10.
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?)
Submitted by Anonymous (not registered) on Thu, 2006-08-10 08:20.
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).