<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Did you mean to post this to the Samba list?<br>
<br>
I'm thinking you'll get more help there...<br>
<br>
<br>
<br>
Jim Christiansen wrote:
<blockquote
 cite="mid:8b88203f1002081234q4b064d71k18cc94cfa214bcdc@mail.gmail.com"
 type="cite">
  <div>I have followed:</div>
  <div><br>
  </div>
  <div><a moz-do-not-send="true"
 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 moz-do-not-send="true"
 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'm using Samba 3.3.2</div>
  <div><br>
  </div>
  <div>Here's my&nbsp;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&nbsp;</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># &nbsp;- When such options are commented with ";", the proposed
setting</div>
  <div># &nbsp; &nbsp;differs from the default Samba behaviour</div>
  <div># &nbsp;- When commented with "#", the proposed setting is the default</div>
  <div># &nbsp; &nbsp;behaviour of Samba but the option is considered important</div>
  <div># &nbsp; &nbsp;enough to be mentioned here</div>
  <div>#</div>
  <div># NOTE: Whenever you modify this file you should run the command</div>
  <div># "testparm" to check that you have not made any basic syntactic&nbsp;</div>
  <div># errors.&nbsp;</div>
  <div># A well-established practice is to name the original file</div>
  <div># "smb.conf.master" and create the "real" 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># "include" 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>&nbsp;&nbsp; workgroup = ROOM101</div>
  <div><br>
  </div>
  <div># server string is the equivalent of the NT Description field</div>
  <div>&nbsp;&nbsp; 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># &nbsp; 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>; &nbsp; wins server = w.x.y.z</div>
  <div><br>
  </div>
  <div># This will prevent nmbd to search for NetBIOS names through DNS.</div>
  <div>&nbsp;&nbsp; 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>; &nbsp; 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>; &nbsp; interfaces = <a moz-do-not-send="true"
 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># 'interfaces' 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. &nbsp;However,
this</div>
  <div># option cannot handle dynamic or non-broadcast interfaces
correctly.</div>
  <div>; &nbsp; 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>&nbsp;&nbsp; log file = /var/log/samba/log.%m</div>
  <div><br>
  </div>
  <div># Cap the size of the individual log files (in KiB).</div>
  <div>&nbsp;&nbsp; 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 'yes'.</div>
  <div># &nbsp; 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>&nbsp;&nbsp; syslog = 0</div>
  <div><br>
  </div>
  <div># Do something sensible when Samba crashes: mail the admin a
backtrace</div>
  <div>&nbsp;&nbsp; panic action = /usr/share/samba/panic-action %d</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>####### Authentication #######</div>
  <div><br>
  </div>
  <div># "security = user" 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. &nbsp;See the section on</div>
  <div># 'encrypt passwords' in the smb.conf(5) manpage before enabling.</div>
  <div>&nbsp;&nbsp; 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. &nbsp;</div>
  <div>&nbsp;&nbsp; passdb backend = tdbsam</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; 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>&nbsp;&nbsp; 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
 moz-do-not-send="true" 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>&nbsp;&nbsp; passwd program = /usr/bin/passwd %u</div>
  <div>&nbsp;&nbsp; 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># 'passwd program'. The default is 'no'.</div>
  <div>&nbsp;&nbsp; pam password change = yes</div>
  <div><br>
  </div>
  <div># This option controls how unsuccessful authentication attempts
are mapped&nbsp;</div>
  <div># to anonymous connections</div>
  <div>&nbsp;&nbsp; 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 'domain master' setting to no</div>
  <div>#</div>
  <div>domain logons = yes</div>
  <div>#</div>
  <div># The following setting only takes effect if 'domain logons' is
set</div>
  <div># It specifies the location of the user'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>; &nbsp; logon path = \\%N\profiles\%U</div>
  <div># Another common choice is storing the profile in the user's
home directory</div>
  <div># (this is Samba's default)</div>
  <div>logon path = \\%N\%U\profile</div>
  <div><br>
  </div>
  <div># The following setting only takes effect if 'domain logons' is
set</div>
  <div># It specifies the location of a user'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 'domain logons' 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 'DOS' 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. &nbsp;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 "" %u</div>
  <div><br>
  </div>
  <div># This allows machine accounts to be created on the domain
controller via the&nbsp;</div>
  <div># SAMR RPC pipe. &nbsp;</div>
  <div># The following assumes a "machines" group exists on the system</div>
  <div>#add machine script &nbsp;= /usr/sbin/useradd -g machines -c "%u
machine account" -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. &nbsp;</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'll need this</div>
  <div># &nbsp; 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>; &nbsp; printing = bsd</div>
  <div>; &nbsp; printcap name = /etc/printcap</div>
  <div><br>
  </div>
  <div># CUPS printing. &nbsp;See also the cupsaddsmb(8) manpage in the</div>
  <div># cupsys-client package.</div>
  <div>; &nbsp; printing = cups</div>
  <div>; &nbsp; 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>; &nbsp; 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># &nbsp; &nbsp; &nbsp; &nbsp; SO_RCVBUF=8192 SO_SNDBUF=8192</div>
  <div># &nbsp; 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>; &nbsp; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m"
%s; rm %s' &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 'no'; otherwise, the default behavior is
recommended.</div>
  <div># &nbsp; domain master = auto</div>
  <div><br>
  </div>
  <div># Some defaults for winbind (make sure you're not using the
ranges</div>
  <div># for something else.)</div>
  <div>; &nbsp; idmap uid = 10000-20000</div>
  <div>; &nbsp; idmap gid = 10000-20000</div>
  <div>; &nbsp; 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>; &nbsp; winbind enum groups = yes</div>
  <div>; &nbsp; 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>; &nbsp; usershare max shares = 100</div>
  <div><br>
  </div>
  <div># Allow users who've been granted usershare privileges to create</div>
  <div># public shares, not just authenticated ones</div>
  <div>&nbsp;&nbsp; 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. &nbsp;This will share
each</div>
  <div># user's home directory as \\server\username</div>
  <div>[homes]</div>
  <div>&nbsp;&nbsp; comment = Home Directories</div>
  <div>&nbsp;&nbsp; browseable = no</div>
  <div><br>
  </div>
  <div># By default, the home directories are exported read-only.
Change the</div>
  <div># next parameter to 'no' if you want to be able to write to them.</div>
  <div>&nbsp;&nbsp; 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>&nbsp;&nbsp; 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>&nbsp;&nbsp; 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. &nbsp;Un-comment the following
parameter</div>
  <div># to make sure that only "username" can connect to
\\server\username</div>
  <div># This might need tweaking when using external authentication
schemes</div>
  <div>&nbsp;&nbsp; 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>&nbsp;&nbsp; comment = Network Logon Service</div>
  <div>&nbsp;&nbsp; path = /home/samba/netlogon</div>
  <div>&nbsp;&nbsp; guest ok = yes</div>
  <div>&nbsp;&nbsp; read only = yes</div>
  <div>&nbsp;&nbsp; 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 "logon path" 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>; &nbsp; comment = Users profiles</div>
  <div>; &nbsp; path = /home/samba/profiles</div>
  <div>; &nbsp; guest ok = no</div>
  <div>; &nbsp; browseable = no</div>
  <div>; &nbsp; create mask = 0600</div>
  <div>; &nbsp; directory mask = 0700</div>
  <div><br>
  </div>
  <div>[printers]</div>
  <div>&nbsp;&nbsp; comment = All Printers</div>
  <div>&nbsp;&nbsp; browseable = no</div>
  <div>&nbsp;&nbsp; path = /var/spool/samba</div>
  <div>&nbsp;&nbsp; printable = yes</div>
  <div>&nbsp;&nbsp; guest ok = no</div>
  <div>&nbsp;&nbsp; read only = yes</div>
  <div>&nbsp;&nbsp; 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>&nbsp;&nbsp; comment = Printer Drivers</div>
  <div>&nbsp;&nbsp; path = /var/lib/samba/printers</div>
  <div>&nbsp;&nbsp; browseable = yes</div>
  <div>&nbsp;&nbsp; read only = yes</div>
  <div>&nbsp;&nbsp; guest ok = no</div>
  <div># Uncomment to allow remote administration of Windows print
drivers.</div>
  <div># You may need to replace 'lpadmin' 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>; &nbsp; write list = root, @lpadmin</div>
  <div><br>
  </div>
  <div># A sample share for sharing your CD-ROM with others.</div>
  <div>;[cdrom]</div>
  <div>; &nbsp; comment = Samba server's CD-ROM</div>
  <div>; &nbsp; read only = yes</div>
  <div>; &nbsp; locking = no</div>
  <div>; &nbsp; path = /cdrom</div>
  <div>; &nbsp; 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># &nbsp; &nbsp; &nbsp; /dev/scd0 &nbsp; /cdrom &nbsp;iso9660 defaults,noauto,ro,user &nbsp; 0 0</div>
  <div>#</div>
  <div># The CD-ROM gets unmounted automatically after the connection
to the</div>
  <div>#</div>
  <div># If you don'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>; &nbsp; preexec = /bin/mount /cdrom</div>
  <div>; &nbsp; postexec = /bin/umount /cdrom</div>
  <div><br>
  </div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Steve Rippl
Technology Director
Woodland Public Schools
360 225 9451 x326
</pre>
</body>
</html>