<div>I have followed:</div><div><br></div><div><a href="http://rudd-o.com/en/linux-and-free-software/making-windows-xp-join-a-samba-domain-in-5-minutes">http://rudd-o.com/en/linux-and-free-software/making-windows-xp-join-a-samba-domain-in-5-minutes</a></div>
<div><br></div><div>and</div><div><br></div><div><a href="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ClientConfig.html#WXPP009">http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ClientConfig.html#WXPP009</a></div>
<div><br></div><div>and the reg hack even though I&#39;m using Samba 3.3.2</div><div><br></div><div>Here&#39;s my smb.conf</div><div>#</div><div># Sample configuration file for the Samba suite for Debian GNU/Linux.</div><div>
#</div><div>#</div><div># This is the main Samba configuration file. You should read the</div><div># smb.conf(5) manual page in order to understand the options listed</div><div># here. Samba has a huge number of configurable options most of which </div>
<div># are not shown in this example</div><div>#</div><div># Some options that are often worth tuning have been included as</div><div># commented-out examples in this file.</div><div>#  - When such options are commented with &quot;;&quot;, the proposed setting</div>
<div>#    differs from the default Samba behaviour</div><div>#  - When commented with &quot;#&quot;, the proposed setting is the default</div><div>#    behaviour of Samba but the option is considered important</div><div>#    enough to be mentioned here</div>
<div>#</div><div># NOTE: Whenever you modify this file you should run the command</div><div># &quot;testparm&quot; to check that you have not made any basic syntactic </div><div># errors. </div><div># A well-established practice is to name the original file</div>
<div># &quot;smb.conf.master&quot; and create the &quot;real&quot; config file with</div><div># testparm -s smb.conf.master &gt;smb.conf</div><div># This minimizes the size of the really used smb.conf file</div><div># which, according to the Samba Team, impacts performance</div>
<div># However, use this with caution if your smb.conf file contains nested</div><div># &quot;include&quot; statements. See Debian bug #483187 for a case</div><div># where using a master file is not a good idea.</div><div>
#</div><div><br></div><div>#======================= Global Settings =======================</div><div><br></div><div>[global]</div><div><br></div><div>## Browsing/Identification ###</div><div><br></div><div># Change this to the workgroup/NT-domain name your Samba server will part of</div>
<div>   workgroup = ROOM101</div><div><br></div><div># server string is the equivalent of the NT Description field</div><div>   server string = %h server (Samba, Ubuntu)</div><div><br></div><div># Windows Internet Name Serving Support Section:</div>
<div># WINS Support - Tells the NMBD component of Samba to enable its WINS Server</div><div>#   wins support = no</div><div><br></div><div># WINS Server - Tells the NMBD components of Samba to be a WINS Client</div><div># Note: Samba can be either a WINS Server, or a WINS Client, but NOT both</div>
<div>;   wins server = w.x.y.z</div><div><br></div><div># This will prevent nmbd to search for NetBIOS names through DNS.</div><div>   dns proxy = no</div><div><br></div><div># What naming service and in what order should we use to resolve host names</div>
<div># to IP addresses</div><div>;   name resolve order = lmhosts host wins bcast</div><div><br></div><div>#### Networking ####</div><div><br></div><div># The specific set of interfaces / networks to bind to</div><div># This can be either the interface name or an IP address/netmask;</div>
<div># interface names are normally preferred</div><div>;   interfaces = <a href="http://127.0.0.0/8">127.0.0.0/8</a> eth0</div><div><br></div><div># Only bind to the named interfaces and/or networks; you must use the</div>
<div># &#39;interfaces&#39; option above to use this.</div><div># It is recommended that you enable this feature if your Samba machine is</div><div># not protected by a firewall or is a firewall itself.  However, this</div>
<div># option cannot handle dynamic or non-broadcast interfaces correctly.</div><div>;   bind interfaces only = yes</div><div><br></div><div><br></div><div><br></div><div>#### Debugging/Accounting ####</div><div><br></div>
<div># This tells Samba to use a separate log file for each machine</div><div># that connects</div><div>   log file = /var/log/samba/log.%m</div><div><br></div><div># Cap the size of the individual log files (in KiB).</div>
<div>   max log size = 1000</div><div><br></div><div># If you want Samba to only log through syslog then set the following</div><div># parameter to &#39;yes&#39;.</div><div>#   syslog only = no</div><div><br></div><div># We want Samba to log a minimum amount of information to syslog. Everything</div>
<div># should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log</div><div># through syslog you should set the following parameter to something higher.</div><div>   syslog = 0</div><div><br></div><div># Do something sensible when Samba crashes: mail the admin a backtrace</div>
<div>   panic action = /usr/share/samba/panic-action %d</div><div><br></div><div><br></div><div>####### Authentication #######</div><div><br></div><div># &quot;security = user&quot; is always a good idea. This will require a Unix account</div>
<div># in this server for every user accessing the server. See</div><div># /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html</div><div># in the samba-doc package for details.</div><div>security = user</div><div>
<br></div><div># You may wish to use password encryption.  See the section on</div><div># &#39;encrypt passwords&#39; in the smb.conf(5) manpage before enabling.</div><div>   encrypt passwords = true</div><div><br></div><div>
# If you are using encrypted passwords, Samba will need to know what</div><div># password database type you are using.  </div><div>   passdb backend = tdbsam</div><div><br></div><div>   obey pam restrictions = yes</div><div>
<br></div><div># This boolean parameter controls whether Samba attempts to sync the Unix</div><div># password with the SMB password when the encrypted SMB password in the</div><div># passdb is changed.</div><div>   unix password sync = yes</div>
<div><br></div><div># For Unix password sync to work on a Debian GNU/Linux system, the following</div><div># parameters must be set (thanks to Ian Kahan &lt;&lt;<a href="mailto:kahan@informatik.tu-muenchen.de">kahan@informatik.tu-muenchen.de</a>&gt; for</div>
<div># sending the correct chat script for the passwd program in Debian Sarge).</div><div>   passwd program = /usr/bin/passwd %u</div><div>   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .</div>
<div><br></div><div># This boolean controls whether PAM will be used for password changes</div><div># when requested by an SMB client instead of the program listed in</div><div># &#39;passwd program&#39;. The default is &#39;no&#39;.</div>
<div>   pam password change = yes</div><div><br></div><div># This option controls how unsuccessful authentication attempts are mapped </div><div># to anonymous connections</div><div>   map to guest = bad user</div><div><br>
</div><div>########## Domains ###########</div><div><br></div><div># Is this machine able to authenticate users. Both PDC and BDC</div><div># must have this setting enabled. If you are the BDC you must</div><div># change the &#39;domain master&#39; setting to no</div>
<div>#</div><div>domain logons = yes</div><div>#</div><div># The following setting only takes effect if &#39;domain logons&#39; is set</div><div># It specifies the location of the user&#39;s profile directory</div><div># from the client point of view)</div>
<div># The following required a [profiles] share to be setup on the</div><div># samba server (see below)</div><div>;   logon path = \\%N\profiles\%U</div><div># Another common choice is storing the profile in the user&#39;s home directory</div>
<div># (this is Samba&#39;s default)</div><div>logon path = \\%N\%U\profile</div><div><br></div><div># The following setting only takes effect if &#39;domain logons&#39; is set</div><div># It specifies the location of a user&#39;s home directory (from the client</div>
<div># point of view)</div><div>logon drive = H:</div><div>logon home = \\%N\%U</div><div><br></div><div># The following setting only takes effect if &#39;domain logons&#39; is set</div><div># It specifies the script to run during logon. The script must be stored</div>
<div># in the [netlogon] share</div><div># NOTE: Must be store in &#39;DOS&#39; file format convention</div><div>logon script = logon.cmd</div><div><br></div><div># This allows Unix users to be created on the domain controller via the SAMR</div>
<div># RPC pipe.  The example command creates a user account with a disabled Unix</div><div># password; please adapt to your needs</div><div>; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos &quot;&quot; %u</div>
<div><br></div><div># This allows machine accounts to be created on the domain controller via the </div><div># SAMR RPC pipe.  </div><div># The following assumes a &quot;machines&quot; group exists on the system</div><div>
#add machine script  = /usr/sbin/useradd -g machines -c &quot;%u machine account&quot; -d /var/lib/samba -s /bin/false %u</div><div>add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u</div>
<div><br></div><div><br></div><div># This allows Unix groups to be created on the domain controller via the SAMR</div><div># RPC pipe.  </div><div>; add group script = /usr/sbin/addgroup --force-badname %g</div><div><br></div>
<div>########## Printing ##########</div><div><br></div><div># If you want to automatically load your printer list rather</div><div># than setting them up individually then you&#39;ll need this</div><div>#   load printers = yes</div>
<div><br></div><div># lpr(ng) printing. You may wish to override the location of the</div><div># printcap file</div><div>;   printing = bsd</div><div>;   printcap name = /etc/printcap</div><div><br></div><div># CUPS printing.  See also the cupsaddsmb(8) manpage in the</div>
<div># cupsys-client package.</div><div>;   printing = cups</div><div>;   printcap name = cups</div><div><br></div><div>############ Misc ############</div><div><br></div><div># Using the following line enables you to customise your configuration</div>
<div># on a per machine basis. The %m gets replaced with the netbios name</div><div># of the machine that is connecting</div><div>;   include = /home/samba/etc/smb.conf.%m</div><div><br></div><div># Most people will find that this option gives better performance.</div>
<div># See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html</div><div># for details</div><div># You may want to add the following on a Linux system:</div><div>#         SO_RCVBUF=8192 SO_SNDBUF=8192</div>
<div>#   socket options = TCP_NODELAY</div><div><br></div><div># The following parameter is useful only if you have the linpopup package</div><div># installed. The samba maintainer and the linpopup maintainer are</div><div>
# working to ease installation and configuration of linpopup and samba.</div><div>;   message command = /bin/sh -c &#39;/usr/bin/linpopup &quot;%f&quot; &quot;%m&quot; %s; rm %s&#39; &amp;</div><div><br></div><div># Domain Master specifies Samba to be the Domain Master Browser. If this</div>
<div># machine will be configured as a BDC (a secondary logon server), you</div><div># must set this to &#39;no&#39;; otherwise, the default behavior is recommended.</div><div>#   domain master = auto</div><div><br></div>
<div># Some defaults for winbind (make sure you&#39;re not using the ranges</div><div># for something else.)</div><div>;   idmap uid = 10000-20000</div><div>;   idmap gid = 10000-20000</div><div>;   template shell = /bin/bash</div>
<div><br></div><div># The following was the default behaviour in sarge,</div><div># but samba upstream reverted the default because it might induce</div><div># performance issues in large organizations.</div><div># See Debian bug #368251 for some of the consequences of *not*</div>
<div># having this setting and smb.conf(5) for details.</div><div>;   winbind enum groups = yes</div><div>;   winbind enum users = yes</div><div><br></div><div># Setup usershare options to enable non-root users to share folders</div>
<div># with the net usershare command.</div><div><br></div><div># Maximum number of usershare. 0 (default) means that usershare is disabled.</div><div>;   usershare max shares = 100</div><div><br></div><div># Allow users who&#39;ve been granted usershare privileges to create</div>
<div># public shares, not just authenticated ones</div><div>   usershare allow guests = yes</div><div><br></div><div>#======================= Share Definitions =======================</div><div><br></div><div># Un-comment the following (and tweak the other settings below to suit)</div>
<div># to enable the default home directory shares.  This will share each</div><div># user&#39;s home directory as \\server\username</div><div>[homes]</div><div>   comment = Home Directories</div><div>   browseable = no</div>
<div><br></div><div># By default, the home directories are exported read-only. Change the</div><div># next parameter to &#39;no&#39; if you want to be able to write to them.</div><div>   read only = no</div><div><br></div>
<div># File creation mask is set to 0700 for security reasons. If you want to</div><div># create files with group=rw permissions, set next parameter to 0775.</div><div>   create mask = 0700</div><div><br></div><div># Directory creation mask is set to 0700 for security reasons. If you want to</div>
<div># create dirs. with group=rw permissions, set next parameter to 0775.</div><div>   directory mask = 0700</div><div><br></div><div># By default, \\server\username shares can be connected to by anyone</div><div># with access to the samba server.  Un-comment the following parameter</div>
<div># to make sure that only &quot;username&quot; can connect to \\server\username</div><div># This might need tweaking when using external authentication schemes</div><div>   valid users = %S</div><div><br></div><div># Un-comment the following and create the netlogon directory for Domain Logons</div>
<div># (you need to configure Samba to act as a domain controller too.)</div><div>[netlogon]</div><div>   comment = Network Logon Service</div><div>   path = /home/samba/netlogon</div><div>   guest ok = yes</div><div>   read only = yes</div>
<div>   share modes = no</div><div><br></div><div># Un-comment the following and create the profiles directory to store</div><div># users profiles (see the &quot;logon path&quot; option above)</div><div># (you need to configure Samba to act as a domain controller too.)</div>
<div># The path below should be writable by all users so that their</div><div># profile directory may be created the first time they log on</div><div>;[profiles]</div><div>;   comment = Users profiles</div><div>;   path = /home/samba/profiles</div>
<div>;   guest ok = no</div><div>;   browseable = no</div><div>;   create mask = 0600</div><div>;   directory mask = 0700</div><div><br></div><div>[printers]</div><div>   comment = All Printers</div><div>   browseable = no</div>
<div>   path = /var/spool/samba</div><div>   printable = yes</div><div>   guest ok = no</div><div>   read only = yes</div><div>   create mask = 0700</div><div><br></div><div># Windows clients look for this share name as a source of downloadable</div>
<div># printer drivers</div><div>[print$]</div><div>   comment = Printer Drivers</div><div>   path = /var/lib/samba/printers</div><div>   browseable = yes</div><div>   read only = yes</div><div>   guest ok = no</div><div>
# Uncomment to allow remote administration of Windows print drivers.</div><div># You may need to replace &#39;lpadmin&#39; with the name of the group your</div><div># admin users are members of.</div><div># Please note that you also need to set appropriate Unix permissions</div>
<div># to the drivers directory for these users to have write rights in it</div><div>;   write list = root, @lpadmin</div><div><br></div><div># A sample share for sharing your CD-ROM with others.</div><div>;[cdrom]</div><div>
;   comment = Samba server&#39;s CD-ROM</div><div>;   read only = yes</div><div>;   locking = no</div><div>;   path = /cdrom</div><div>;   guest ok = yes</div><div><br></div><div># The next two parameters show how to auto-mount a CD-ROM when the</div>
<div>#<span class="Apple-tab-span" style="white-space:pre">        </span>cdrom share is accesed. For this to work /etc/fstab must contain</div><div>#<span class="Apple-tab-span" style="white-space:pre">        </span>an entry like this:</div>
<div>#</div><div>#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0</div><div>#</div><div># The CD-ROM gets unmounted automatically after the connection to the</div><div>#</div><div># If you don&#39;t want to use auto-mounting/unmounting make sure the CD</div>
<div>#<span class="Apple-tab-span" style="white-space:pre">        </span>is mounted on /cdrom</div><div>#</div><div>;   preexec = /bin/mount /cdrom</div><div>;   postexec = /bin/umount /cdrom</div><div><br></div>