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
5 ;======================= Global Settings =====================================
8 ; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
11 ; comment is the equivalent of the NT Description field
12 comment = RedHat Samba Server
14 ; volume = used to emulate a CDRom label (can be set on a per share basis)
17 ; printing = BSD or SYSV or AIX, etc.
19 printcap name = /etc/printcap
22 ; Uncomment this if you want a guest account
23 ; guest account = pcguest
24 log file = /var/log/samba-log.%m
25 ; Put a capping on the size of the log files (in Kb)
28 ; Options for handling file name case sensitivity and / or preservation
29 ; Case Sensitivity breaks many WfW and Win95 apps
30 ; case sensitive = yes
31 short preserve case = yes
34 ; Security and file integrity related options
35 lock directory = /var/lock/samba
40 ; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
41 ; SERVER uses a Windows NT Server to provide authentication services
43 ; Use password server option only with security = server
44 ; password server = <NT-Server-Name>
46 ; Configuration Options ***** Watch location in smb.conf for side-effects *****
47 ; Where %m is any SMBName (machine name, or computer name) for which a custom
48 ; configuration is desired
49 ; include = /etc/smb.conf.%m
51 ; Performance Related Options
52 ; Before setting socket options read the smb.conf man page!!
53 socket options = TCP_NODELAY
54 ; Socket Address is used to specify which socket Samba
55 ; will listen on (good for aliased systems)
56 ; socket address = aaa.bbb.ccc.ddd
57 ; Use keep alive only if really needed!!!!
60 ; Domain Control Options
61 ; OS Level gives Samba the power to rule the roost. Windows NT = 32
62 ; Any value < 32 means NT wins as Master Browser, > 32 Samba gets it
64 ; specifies Samba to be the Domain Master Browser
66 ; Use with care only if you have an NT server on your network that has been
67 ; configured at install time to be a primary domain controller.
68 ; domain controller = <NT-Domain-Controller-SMBName>
69 ; Domain logon control can be a good thing! See [netlogon] share section below!
71 ; run a specific logon batch file per workstation (machine)
72 ; logon script = %m.bat
73 ; run a specific logon batch file per username
74 ; logon script = %u.bat
75 ; Windows Internet Name Serving Support Section
76 ; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
79 ; WINS Server - Tells the NMBD components of Samba to be a WINS Client
80 ; Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
81 ; wins server = w.x.y.z
82 ; WINS Proxy - Tells Samba to answer name resolution queries on behalf of a non
83 ; WINS Client capable client, for this to work there must be at least one
84 ; WINS Server on the network. The default is NO.
87 ;============================ Share Declarations ==============================
89 comment = Home Directories
93 short preserve case = yes
96 ; Un-comment the following and create the netlogon directory for Domain Logons
98 ; comment = Samba Network Logon Service
99 ; path = /home/netlogon
100 ; Case sensitivity breaks logon script processing!!!
101 ; case sensitive = no
105 ; browseable = yes ; say NO if you want to hide the NETLOGON share
106 ; admin users = @wheel
108 ; NOTE: There is NO need to specifically define each individual printer
110 comment = All Printers
111 path = /var/spool/samba
114 ; Set public = yes to allow user 'guest account' to print
120 ; comment = Temporary file space
125 ; A publicly accessible directory, but read only, except for people in
128 comment = Public Stuff
137 ; A private printer, usable only by fred. Spool data will be placed in fred's
138 ; home directory. Note that fred must have write access to the spool directory,
141 ; comment = Fred's Printer
144 ; printer = freds_printer
149 ; A private directory, usable only by fred. Note that fred requires write
150 ; access to the directory.
152 ; comment = Fred's Service
153 ; path = /usr/somewhere/private
159 ; a service which has a different directory for each machine that connects
160 ; this allows you to tailor configurations to incoming machines. You could
161 ; also use the %u option to tailor it by user name.
162 ; The %m gets replaced with the machine name that is connecting.
164 ; comment = PC Directories
170 ; A publicly accessible directory, read/write to all users. Note that all files
171 ; created in the directory by users will be owned by the default user, so
172 ; any user with access can delete any other user's files. Obviously this
173 ; directory must be writable by the default user. Another user could of course
174 ; be specified, in which case all files would be owned by that user instead.
176 ; path = /usr/somewhere/else/public
183 ; The following two entries demonstrate how to share a directory so that two
184 ; users can place files there that will be owned by the specific users. In this
185 ; setup, the directory should be writable by both users and should have the
186 ; sticky bit set on it to prevent abuse. Obviously this could be extended to
187 ; as many users as required.
189 ; comment = Mary's and Fred's stuff
190 ; path = /usr/somewhere/shared
191 ; valid users = mary fred