[PATCH] Remove 'server role' lines from default smb.conf

Rowland Penny repenny241155 at gmail.com
Wed Aug 19 18:45:51 UTC 2015

HI, Samba ships a default smb.conf, this contains lines referring to the 
server role and a default line 'server role = standalone server'.

In 'man smb.conf', there is this about 'server role':

             This option determines the basic operating mode of a Samba 
            and is one of the most important settings in the smb.conf file.

            The default is server role = auto, as causes Samba to operate
            according to the security setting, or if not specified as a 
            file server that is not connected to any domain.

I do not think 'server role' should be set anywhere except on an AD DC, 
the attached patch removes the lines.

-------------- next part --------------
From 7f5481be26083ba1d7fcb070cc152cb00699b8f7 Mon Sep 17 00:00:00 2001
From: Rowland Penny <repenny241155 at gmail.com>
Date: Wed, 19 Aug 2015 19:33:58 +0100
Subject: [PATCH] Default smb.conf: remove lines referring to 'server role'

Signed-off-by: Rowland Penny <repenny241155 at gmail.com>
 examples/smb.conf.default | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/examples/smb.conf.default b/examples/smb.conf.default
index bb9c2e2..a1a0b4c 100644
--- a/examples/smb.conf.default
+++ b/examples/smb.conf.default
@@ -28,17 +28,6 @@
 # server string is the equivalent of the NT Description field
    server string = Samba Server
-# Server role. Defines in which mode Samba will operate. Possible
-# values are "standalone server", "member server", "classic primary
-# domain controller", "classic backup domain controller", "active
-# directory domain controller".
-# Most people will want "standalone sever" or "member server".
-# Running as "active directory domain controller" will require first
-# running "samba-tool domain provision" to wipe databases and create a
-# new domain.
-   server role = standalone server
 # This option is important for security. It allows you to restrict
 # connections to machines which are on your local network. The
 # following example restricts access to two C class networks and

More information about the samba-technical mailing list