1 ; The global setting for a RedHat default install
2 ; smbd re-reads this file regularly, but if in doubt stop and restart it:
3 ; /etc/rc.d/init.d/smb stop
4 ; /etc/rc.d/init.d/smb start
6 ;======================= Global Settings =====================================
9 ; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
12 ; comment is the equivalent of the NT Description field
13 comment = RedHat Samba Server
15 ; volume = used to emulate a CDRom label
18 ; printing = BSD or SYSV or AIX, etc.
20 printcap name = /etc/printcap
23 ; Uncomment this if you want a guest account
24 ; guest account = pcguest
25 log file = /var/log/samba-log.%m
26 ; Put a capping on the size of the log files (in Kb)
29 ; Options for handling file name case sensitivity and / or preservation
30 ; Case Sensitivity breaks many WfW and Win95 apps
31 ; case sensitive = yes
32 short preserve case = yes
35 ; Security and file integrity related options
36 lock directory = /var/lock/samba
41 ; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
42 ; SERVER uses a Windows NT Server to provide authentication services
44 ; Use password server option only with security = server
45 ; password server = <NT-Server-Name>
47 ; Configuration Options ***** Watch location in smb.conf for side-effects *****
48 ; Where %m is any SMBName (machine name, or computer name) for which a custom
49 ; configuration is desired
50 ; include = /etc/smb.conf.%m
52 ; Performance Related Options
53 ; Before setting socket options read the smb.conf man page!!
54 socket options = TCP_NODELAY
55 ; Socket Address is used to specify which socket Samba
56 ; will listen on (good for aliased systems)
57 ; socket address = aaa.bbb.ccc.ddd
58 ; Use keep alive only if really needed!!!!
61 ; Domain Control Options
62 ; OS Level gives Samba the power to rule the roost. Windows NT = 32
63 ; Any value < 32 means NT wins as Master Browser, > 32 Samba gets it
65 ; specifies Samba to be the Domain Master Browser
67 ; Use with care only if you have an NT server on your network that has been
68 ; configured at install time to be a primary domain controller.
69 ; domain controller = <NT-Domain-Controller-SMBName>
70 ; Domain logon control can be a good thing!
72 ; run a specific logon batch file per workstation (machine)
73 ; logon script = %m.bat
74 ; run a specific logon batch file per username
75 ; logon script = %u.bat
77 ;============================ Share Declarations ==============================
79 comment = Home Directories
83 short preserve case = yes
86 ; Un-comment the following and create the netlogon directory for Domain Logons
88 ; comment = Samba Network Logon Service
89 ; path = /home/netlogon
90 ; Case sensitivity breaks logon script processing!!!
95 ; browseable = yes ; say NO if you want to hide the NETLOGON share
96 ; admin users = @wheel
98 ; NOTE: There is NO need to specifically define each printer
100 comment = All Printers
101 path = /var/spool/samba
109 ; comment = Temporary file space
114 ; A publicly accessible directory, but read only, except for people in
117 comment = Public Stuff
126 ; A private printer, usable only by fred. Spool data will be placed in fred's
127 ; home directory. Note that fred must have write access to the spool directory,
130 ; comment = Fred's Printer
133 ; printer = freds_printer
138 ; A private directory, usable only by fred. Note that fred requires write
139 ; access to the directory.
141 ; comment = Fred's Service
142 ; path = /usr/somewhere/private
148 ; a service which has a different directory for each machine that connects
149 ; this allows you to tailor configurations to incoming machines. You could
150 ; also use the %u option to tailor it by user name.
151 ; The %m gets replaced with the machine name that is connecting.
153 ; comment = PC Directories
159 ; A publicly accessible directory, read/write to all users. Note that all files
160 ; created in the directory by users will be owned by the default user, so
161 ; any user with access can delete any other user's files. Obviously this
162 ; directory must be writable by the default user. Another user could of course
163 ; be specified, in which case all files would be owned by that user instead.
165 ; path = /usr/somewhere/else/public
172 ; The following two entries demonstrate how to share a directory so that two
173 ; users can place files there that will be owned by the specific users. In this
174 ; setup, the directory should be writable by both users and should have the
175 ; sticky bit set on it to prevent abuse. Obviously this could be extended to
176 ; as many users as required.
178 ; comment = Mary's and Fred's stuff
179 ; path = /usr/somewhere/shared
180 ; valid users = mary fred