> # workgroup parameter.
winbind use default domain=yes
#
# template homedir determines the home directory for winbind users, with
#% D expanding to their domain name and% U expanding to their username:
template homedir=/ home /% D /% U
# When using winbind, you may want to have samba create home directories
# on the fly for authenticated users. Ensure that /etc/pam.d/samba is
# using service=system-auth-winbind in pam_stack modules, and then
# enable obedience of pam restrictions below:
obey pam restrictions=yes
#
# template shell determines the shell users authenticated by winbind get
template shell=/ bin/bash
# 5. Browser Control and Networking Options:
# 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
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces=192.168.12.2/24 192.168.13.2/24
# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from/to a whole subnet (see below)
; remote browse sync=192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce=192.168.1.255 192.168.2.44
# set local master to no if you do not 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. Do not use this
# if you already have a Windows NT domain controller doing this job
; domain master=yes
# 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=yes
# 6. Domain Control Options:
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations or Primary Domain Controller for WinNT and Win2k
; domain logons=yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script =% m.bat
# run a specific logon batch file per username
; logon script =% U.bat
# Where to store roaming profiles for WinNT and Win2k
#% L substitutes for this servers netbios name,% U is username
# You must uncomment the [Profiles] share below
; logon path=% L Profiles % U
# Where to store roaming profiles for Win9x. Be careful with this as it also
# impacts where Win2k finds it's/HOME share
; logon home=% L % U .profile
# The add user script is used by a domain member to add local user accounts
# that have been authenticated by the domain controller, or when adding
# users via the Windows NT Tools (ie User Manager for Domains).
# Scripts for file (passwd, smbpasswd) backend:
; add user script=/ usr/sbin/useradd -s/bin/false % u
; delete user script=/ usr/sbin/userdel % s
; add user to group script=/ usr/bin/gpasswd -a % u % g
; delete user from group script=/ usr/bin/gpasswd -d % u % g <...