Samba Primary Domain Controller on Ubuntu Dapper Drake

A Samba Primary Domain Controller is useful if you want to secure access for a small business network.

  1. apt-get install samba
  2. sudo vim /etc/samba/smb.conf
  3. comment out
    invalid users = root

    … otherwise you can’t add machine account from a client computer

  4. wins support = yes
  5. security = user (i.e. no anonymous access)
  6. domain logons = yes (otherwise it won’t be a domain controller)
  7. domain master = yes (a primary domain controller)
  8. preferred master = yes (master browser for netbios)
  9. add user script = /usr/sbin/useradd -m %u
  10. add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null -g machines %u
  11. uncomment [netlogon] section
  12. uncomment [profiles] section

Troubleshooting

  1. XP Explorer crashes twext.dll http://support.microsoft.com/kb/903234/
  2. Samba 3 supports sign-and-seal. No need to tweak any registries to support Windows XP or Windows 2000.
  3. smbclient is your friend in troubleshooting.
  4. smbclient -U root //yourserver/sharename
  5. smbclient -L yourserver
  6. Terpstra’s Samba-3 by Example
  7. Troubleshooting samba checklist, Troubleshooting and here. I wish someone would turn this into a script. It’ll save a lot of troubleshooting.

Leave a Reply