Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-11-2017, 05:51 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 9

Rep: Reputation: 1
Samba 4.5 issues

Hi I am trying to set up a Samba server as a Domain Controller in an active directory forest.

I have set up the relms and can log in to the server as an AD user.

when I try to start Samba it fails


Jan 11 17:35:03 dc11 samba[8106]: [2017/01/11 17:35:03.419322, 0] ../source4/smbd/server.c:466(binary_smbd_main)
Jan 11 17:35:03 dc11 samba[8106]: At this time the 'samba' binary should only be used for either:
Jan 11 17:35:03 dc11 samba[8106]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
Jan 11 17:35:03 dc11 samba[8106]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Jan 11 17:35:03 dc11 samba[8106]: [2017/01/11 17:35:03.419463, 0] ../lib/util/become_daemon.c:111(exit_daemon)
Jan 11 17:35:03 dc11 samba[8106]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
It says the server role should be = to active directory server and it is .

here is the conf file

netbios aliases = sodium
dns forwarder =
security = ADS
server role = active directory domain controller
idmap config * : backend = tdb

path = /usr/local/samba/var/locks/sysvol/
read only = No

path = /usr/local/samba/var/locks/sysvol
read only = No

also then I do a Testparm I get this that also says Role member
[root@dc11 ~]# testparm
Load smb config files from /usr/local/samba/etc/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.

any help would be appreciated.
Old 01-13-2017, 08:57 AM   #2
LQ Newbie
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 1
figured it out , had to first delete the /etc/krb5.conf file , then re-provision the samba server then start samba
Old 05-31-2018, 07:52 PM   #3
LQ Newbie
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
Help for re-provisioning that worked for me:

Make a backup from the smb.config
sudo mv /etc/samba/smb.config /etc/samba/smb.config.backup
than remove the file to let the provisioning take over the configuration
sudo rm -rf /etc/samba/smb.config
Than follow the instructions:
sudo samba-tool domain provision --use-rfc2307 --interactive
(Google samba reprovision because I am not allowed to post the url to the perfect tutorial)
I hope this safes time for you to solve your problem, too


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba issues glennbtn Linux - Newbie 2 07-12-2010 06:10 AM
Samba issues mrkow Ubuntu 2 04-02-2008 12:48 PM
samba issues bloodyscript Linux - Server 10 07-23-2007 07:24 PM
Samba Issues jetfanroy Linux - Newbie 10 07-29-2003 09:25 AM
Samba issues chris Linux - General 4 11-22-2001 05:23 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration