On Mon, 7 Oct 2002 15:54:52 +0200, Oleg Kobets <[EMAIL PROTECTED]> wrote:
>
> Because Win2k /WinXP wins the master browser elections. Set your samba to
> always win the elections. (read docs or use swat)
No need for this. Below is my full mb.conf that works with Win95/98/XP
and also WinNT/W2000 without any problems. I left the comments on purpose.
I think that the relevant part is this:
# This controls whether this share is seen in the list of available
# shares in a net view and in the browse list.
browseable = yes
lm announce = auto
lm interval = 150
Ehud.
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = SW1
# server string is the equivalent of the NT Description field
server string = SW-LDB samba %v
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network.
hosts allow = 10.253.0.0/255.255.240.0 10.253.128.0/255.255.224.0
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/samba/printers.smb
printer driver file = /etc/samba/printers.def
load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
printing = BSD
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 6000
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = server
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
password server = 10.253.0.10
allow trusted domains = Yes
# The following are needed to allow password changing from Windows to
# update the Linux sytsem password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
unix password sync = no
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
# Unix users can map to different SMB User names
username map = /etc/samba/smbusers
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
domain master = no
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
preferred master = no
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
wins server = 10.253.0.10
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
preserve case = yes
short preserve case = yes
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
# The value of the parameter (an integer) allows the debug level
# (logging level) to be specified in the smb.conf file. This is to give
# greater flexibility in the configuration of the system.
debug level = 3
# This parameter specifies the name of a service which will be connected
# to if the service actually requested cannot be found.
default service = public
# This is a list of services that you want to be automatically added to
# the browse lists. This is most useful for homes and printers services
# that would otherwise not be visible.
auto services = homes printers
# This option is used by the programs in the Samba suite to determine
# what naming services and in what order to resolve host names to IP
# addresses. The option takes a space separated string of different name
# resolution options.
# Default: name resolve order = lmhosts host wins bcast
; name resolve order = host wins
# This sets the NetBIOS name by which a Samba server is known. By
# default it is the same as the first component of the host's DNS name.
# If a machine is a browse server or logon server this name (or the
# first component of the hosts DNS name) will be the name that these
# services are advertised under.
netbios name = mvs-ldb
# This is a list of NetBIOS names that nmbd will advertise as additional
# names by which the Samba server is known. This allows one machine to
# appear in browse lists under multiple names. If a machine is acting as
# a browse server or logon server none of these names will be advertised
# as either browse server or logon servers, only the primary name of the
# machine will be advertised with these capabilities.
netbios aliases = sw-ldb
# This parameter determines if nmbd advertises itself as a time server to
# Windows clients. The default is False.
time server = True
# This controls whether this share is seen in the list of available
# shares in a net view and in the browse list.
browseable = yes
lm announce = auto
lm interval = 150
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
hide dot files = no
invalid users = root oper
valid users = %S
create mask = 0760
directory mask = 0770
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /ulnx/spool
writable = no
browseable = yes
printable = yes
public = yes
guest account = samba
print command = /etc/samba/swroute %p %s %m %I %T
lpq command = /appl/syscripts/lpq-replacment.sh -P%p
lprm command = /appl/syscripts/lpr-replacment.sh -P%p %j
; for
[printer$]
path = /etc/samba/printer_dlls
guest account = samba
guest ok = yes
public = yes
writable = no
browseable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
[public]
comment = Public Stuff
path = /procom/J_for_PC
guest account = samba
public = yes
writable = yes
browseable=yes
printable = no
create mask = 0770
directory mask = 0770
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:[EMAIL PROTECTED] Better Safe Than Sorry
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]