#======================= Global Settings ===================================== [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = WORKGROUP # server string is the equivalent of the NT Description field server string =Linux Server # This option is important for security. It allows you to restrict
# otherwise the user "nobody" is used
guest account = nobody
# 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 = 8
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share
# 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 = <NT-Server-Name>
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 = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
# You can use PAM's password change control flag for Samba. If
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# 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
# Windows95 workstations.
domain logons = yes
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
# this has been changed in version 1.9.18 to no.
dns proxy = no
============================ Share Definitions ==============================
[homes]
comment = Home Directories
path=/home
browseable =yes
path=/home
writable =no
valid users = %S
create mode = 0664
directory mode = 0775
# Set public = yes to allow user 'guest account' to print
guest ok = yes
writable = no
printable = yes
[public]
path = /home
public = yes
guest ok = yes
bowsable =yes
writable = no
directory mode =0755
create mode=0664
printable = no