We help IT Professionals succeed at work.

trouble adding an XP machine to a samba domain

sleepless6 asked
Hi all,

I have a bit of a problem.
I'm trying to add 4 new pc's to our existing domain here at work. The 4 new pc's are running WinXP with SP2 and the domain is running on Ubuntu 6.06.

I have tried to add the pc's by changing the domain name under computer properties in windows and then as it wouldn't all the addition to the network i did the following:

I added the machine names to a trusted group as with all the other pc's --
# useradd -g users -d /var/lib/nobody -s /bin/false one-comp-02$

I then added this to the smbpassword db as such--
# smbpasswd -a -m one-comp-02

i then added a 'root' account needs that has the permissions to join the computers to the domain using
# smbpasswd -a root

I stopped and restarted samba
# /etc/init.d/smb stop
# /etc/init.d/smb start

Ok so when i go to add the pc to the domain i still get errors such as 'The network path was not found' and 'Login failure: unknown user name or bad password'

this is a copy of the config file:
      name resolve order = wins bcast hosts
      idmap gid = 15000-20000
      passwd chat = *password* %n\n *password* %n\n *success* .
      obey pam restrictions = yes
      passwd program = /usr/bin/passwd %u
      dns proxy = no
      printing = cups
      idmap uid = 15000-20000
      logon script = scripts/logon.bat
      workgroup = ONENERGY
      printcap name = cups
      security = user
      add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
      delete user script = /usr/sbin/userdel -r %u
      max log size = 1000
      log file = /var/log/samba/log.%m
      load printers = yes
      add group script = /usr/sbin/groupadd %g
      socket options = TCP_NODELAY
      delete group script = /usr/sbin/groupdel %g
      add user to group script = /usr/sbin/usermod -G %g %u
      logon drive = H:
      username map = /etc/samba/smbusers
      domain master = auto
      interfaces = br0
      encrypt passwords = true
      passdb backend = tdbsam
      logon home = \\%N\%U
      wins support = yes
      server string = %h server (Samba, DCServer)
      unix password sync = yes
      logon path = \\onenergy\profile\%U
      add user script = /usr/sbin/useradd -m %u
      syslog = 0
      preferred master = yes
      panic action = /usr/share/samba/panic-action %d
      bind interfaces only = true
      domain logons = yes

   comment = Network Logon Service
   path = /home/samba/netlogon
  admin users = danielg, root, Administrator
  valid users = %U
  read only = no

   comment = Users profiles
   path = /home/samba/profiles
  valid users = %U
create mode = 0600
  directory mode = 0700
  writable = yes
   guest ok = no
   browseable = no

   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

  path = /home/shares/allusers
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes

Any suggestions or help would be greatly appreciated

Watch Question

Did you receive the "welcome to domain" message?
Before you do, you have to input root's password under windows.
Everything else seems to be right.
Are you sure you're not adding the computer to a workgroup?
Because when adding to a domain, you wouldn't get those error messages on failure...


Hi there,

yeah when i try to put in user: root and password to allpw a machine to connect to the network, it gives me those two error messages.
I'm definately trying to add to a domain, not a workgroup so yeah i'm at a loss.



funny enough i found that we had been hit by a virus which stopped samba from recognising the new machines....

all fixed now.

thanx for the help though

Explore More ContentExplore courses, solutions, and other research materials related to this topic.