Building a Samba Active Directory Domain Controller on CentOS 6

From SambaWiki
Revision as of 21:52, 17 May 2013 by Leftcase (talk | contribs)


The Samba project moves fast. This article was last checked for version 4.04. Your mileage may vary!

This tutorial is designed to take you through building a Samba Active Directory Domain Controller on CentOS 6. As CentOS is derived from RHEL, the tutorial should work equally on Red Hat, Scientific Linux and Oracle Linux.

Where possible this tutorial links back to core non-distro specific pages elsewhere on this wiki. This helps ensure that you don't miss out on information other contributors have added or changed since this tutorial was last edited.

Preparing your system

Pre-requisite packages

We're going to build Samba from source. Therefore you'll need to setup your system with the pre-requisite packages for doing so. The required packages are listed here.

Filesystem changes

Samba also requires Access Control List functionality enabling. ACL provides a more flexible way of dealing with file permissions. It's already installed in CentOS 6, but you need to enable it in fstab.

Edit /etc/fstab and add the acl attribute to the partition which will hold your Samba installation.