[Samba] WinXP joining a samba PDC

Fernando Maidana fmaidana at internet.com.uy
Sun May 12 15:00:03 GMT 2002

I have been added a WinXP machine to a Samba PDC following the steps bellow:

1. Make sure that your smb.conf file contains "domain logons = yes"

2. Is a good practice create a group only for computer accounts using:

             group -g 201 machines

3. Add the machine account to you /etc/passwd using the following command:

         useradd -g machines -d /dev/null -c "machine id" machine_name\$

     Don't forgot the "\$"! Otherwise, Samba will not recognize the account.

4. Lock the password to the machine account using:

         passwd -l machine_name$

5. Add the machine account to your smbpasswd file using the command:

         smbpasswd -a -m machine_name

     Without "\$"!!!

6. Apply the registry patch in your XP machine.  Using regedit, make
sure to patch all the
     control sets.  The .reg file only patch "Current Control Set", may
be there are 2 or 3
     Control Sets more.  You have to parch all of them manually.

7. Using the Network Identification Wizard, try to jouin your XP machine
to the Samba
     domain.  You have to do this proccess using an username with admin
rights in your Linux
     machine (like root for example).  Otherwise, it will not work.

And... if all is ok... Voila! Machine added! :)
Hope this help.  I send my smb.conf file, is working well with all my XP

Good Luck!


Kevin Pratt wrote:

 >I am running it to a problem adding a WinXP Computer to my samba PDC. 
  It is
 >coming up with an error about the trust accounts.
 >I have tried the registry patch with no success.
 >Any suggestions?

-------------- next part --------------
;basic server settings
workgroup = FAMILIA
netbios name = SERVIDOR
server string = Servidor Linux
kernel oplocks = no

;PDC and master browser settings
os level = 64
preferred master = yes
local master = yes
domain master = yes
domain logons = yes

;security and logging settings
security = user
encrypt passwords = yes
wins support = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow =
socket address =

;user profiles and home directory
logon home = \\%L\%U\
logon drive = H:
logon path = \\%L\profiles\%U
logon script = netlogon.bat

;==== shares ====
comment = Home Directories
browseable = no
writeable = yes

path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

comment = Network Logon Service
path = /home/netlogon
read only = yes
browseable = no
write list = root

[Mi Musica]
comment = Archivos MP3
path = /musica
read only = yes
write list = root fmaidana
browseable = yes
guest ok = yes

More information about the samba mailing list