[Samba] RHEL 4.0 / Samba 3.0.10 Domain Controller

Max Clark max at clarksys.com
Thu Jun 23 18:35:09 GMT 2005

Hi all,

I have been trying to get my RHEL 4.0 machine to act as a Windows NT 
domain controller so that I can get rid of some old NT 4.0 servers. I 
have the shares and permissions working without issue. The only problem 
is that I cannot get a Windows 2000 workstation to register to the Samba 
domain controller.

I have gone through everything that I can think of, and have gone 
through more than one tutorial/howto to try to get this configured. The 
first problem seems to be that RHEL 4.0 doesn't allow "$" in the 
username when useradd is executed. When I create the useraccount and 
then edit the password and shadow files with vipw I still cannot get the 
Windows 2000 machine to join the domain.

For what it's worth I have included the smb.conf in the email. What am I 
missing to get this working?

Thanks in advance,

# Global parameters
         workgroup = NEWDOMAIN
         netbios name = Collie
         server string = File Server
         interfaces = eth0
         bind interfaces only = Yes
         passdb backend = tdbsam
         pam password change = Yes
         passwd program = /usr/bin/passwd %u
         passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n 
*Password *changed*
         username map = /etc/samba/smbusers
         unix password sync = Yes
         log level = 1
         syslog = 0
         log file = /var/log/samba/%m
         max log size = 50
         smb ports = 139 445
         name resolve order = wins bcast hosts
         time server = Yes
         printcap name = CUPS
         show add printer wizard = No
         add user script = /usr/sbin/useradd -m '%u'
         delete user script = /usr/sbin/userdel -r '%u'
         add group script = /usr/sbin/groupadd '%g'
         delete group script = /usr/sbin/groupdel '%g'
         add user to group script = /usr/sbin/usermod -G '%g' '%u'
         add machine script = /usr/sbin/useradd -s /bin/false -d 
/dev/null -M -g machines '%u'
         shutdown script = /var/lib/samba/scripts/shutdown.sh
         abort shutdown script = /sbin/shutdown -c
         logon script = scripts\logon.bat
         logon path = \\%L\profiles\%U
         logon drive = U:
         logon home = \\%L\home\%U
         domain logons = Yes
         local master = Yes
         os level = 33
         preferred master = Yes
         domain master = Yes
         wins support = Yes
         utmp = Yes
         map acl inherit = Yes
         printing = cups
         veto oplock files = /*.doc/*.xls/*.mdb/

         path = /tmp
         hosts allow =,
         hosts deny =

         comment = Home Directories
         valid users = %S
         read only = No
         browseable = No

More information about the samba mailing list