# # Samba Server configuration example, # Sun Dec 14 12:17:31 CET 2003, Andrea Leofreddi # [global] workgroup = OFFICE server string = Samba %v on SERVER1 netbios name = SERVER1 hosts allow = 192.168.1. 23.9.249.41 load printers = no log file = /var/log/samba.%m max log size = 50 security = user # 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 = encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ; interfaces = 192.168.12.2/24 192.168.13.2/24 local master = yes domain master = yes preferred master = yes domain logons = yes # 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 logon script = netlog.bat # Where to store roving profiles (only for Win95 and WinNT) # %L substitutes for this servers netbios name, %U is username # You must uncomment the [Profiles] share below logon path = \\%L\Profiles\%U # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server wins support = yes # 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 = w.x.y.z # Add user script add user script = /usr/sbin/pw useradd %u -g machines -s /bin/false # 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 guest ok = yes [homes] comment = Home Directories browseable = no # map archive = yes writeable = yes # Un-comment the following and create the netlogon directory for Domain Logons [netlogon] comment = Network Logon Service path = /home/netlogon guest ok = yes writeable = no share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory [Profiles] path = /home/profiles browseable = no guest ok = yes writeable = yes # Shared Media [repository] comment = Repository path = /home/repository read only = yes public = yes # This one is useful for people to share files [tmp] comment = Temporary file space path = /tmp read only = no public = yes