JHT ==> Updated and commented RedHat Linux smb.conf file.
[Samba.git] / examples / redhat / smb.conf
blob648ee1d5331df0d85414466066e2c07ebfe5b6e7
2 ; The global setting for a RedHat default install
3 ; smbd re-reads this file regularly, but if in doubt stop and restart it:
4 ; /etc/rc.d/init.d/smb stop
5 ; /etc/rc.d/init.d/smb start
7 ;======================= Global Settings =====================================
8 [global]
10 ; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
11    workgroup = WORKGROUP
13 ; comment is the equivalent of the NT Description field
14    comment = RedHat Samba Server
16 ; volume = used to emulate a CDRom label
17    volume = RedHat4
19 ; printing = BSD or SYSV or AIX, etc.
20    printing = bsd
21    printcap name = /etc/printcap
22    load printers = yes
24 ; Uncomment this if you want a guest account
25 ;  guest account = pcguest
26    log file = /var/log/samba-log.%m
27 ; Put a capping on the size of the log files (in Kb)
28 ;   max log size = 50
30 ; Options for handling file name case sensitivity and / or preservation
31 ;   case sensitive = yes  ; Case Sensitivity breaks many WfW and Win95 apps
32     short preserve case = yes
33     preserve case = yes
35 ; Security and file integrity related options
36    lock directory = /var/lock/samba
37    locking = yes
38    strict locking = yes
39 ;   fake oplocks = yes
40    share modes = yes
41 ; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
42 ;        SERVER uses a Windows NT Server to provide authentication services
43    security = user
44 ;   password server = <NT-Server-Name> ; Use with security = server only.
46 ; Configuration Options ***** Watch location in smb.conf for side-effects *****
47 ;   include = /etc/smb.conf.%m  ; Where %m is any SMBName (machine name)
48                                 ; (computer name) for which a custom
49                                 ; configuration is desired
51 ; Performance Related Options
52    socket options = TCP_NODELAY  ; Read the smb.conf man page!!
53 ;   socket address = aaa.bbb.ccc.ddd  ; Used to specify which socket Samba
54                                      ; will listen on (good for aliased systems)
55 ;   keep alive = 60  ; Use only if really needed!!!!
57 ; Domain Control Options
58 ;   domain master = yes  ; specifies Samba to be the Domain Master Browser
59 ;   domain controller = <NT-Domain-Controller-SMBName>  ; Use with care
60 ; only if you have an NT server on your network that has been configured
61 ; at install time to be a primary domain controller.
62 ;   domain logons = yes
63 ;   logon script = %m.bat  ; run a specific logon batch file per workstation
64 ;   logon script = %u.bat  ; run a specific logon batch file per username
66 ;============================ Share Declarations ==============================
67 [homes]
68    comment = Home Directories
69    browseable = no
70    read only = no
71    preserve case = yes
72    short preserve case = yes
73    create mode = 0750
75 ; Un-comment the following and create the netlogon directory for Domain Logons
76 ; [netlogon]
77 ;   comment = Samba Network Logon Service
78 ;   path = /home/netlogon
79 ;   case sensitive = no  ; Case sensitivity breaks logon script processing!!!
80 ;   guest ok = yes
81 ;   locking = no
82 ;   read only = yes
83 ;   browseable = yes  ; say NO if you want to hide the NETLOGON share
84 ;   admin users = @wheel
86 ; NOTE: There is NO need to specifically define each printer
87 [printers]
88    comment = All Printers
89    browseable = no
90    printable = yes
91    public = no
92    writable = no
93    create mode = 0700
95 ;[tmp]
96 ;   comment = Temporary file space
97 ;   path = /tmp
98 ;   read only = no
99 ;   public = yes
101 ; A publicly accessible directory, but read only, except for people in
102 ; the staff group
103 [public]
104    comment = Public Stuff
105    path = /home/samba
106    public = yes
107    writable = yes
108    printable = no
109    write list = @staff
111 ; Other examples. 
113 ; A private printer, usable only by fred. Spool data will be placed in fred's
114 ; home directory. Note that fred must have write access to the spool directory,
115 ; wherever it is.
116 ;[fredsprn]
117 ;   comment = Fred's Printer
118 ;   valid users = fred
119 ;   path = /homes/fred
120 ;   printer = freds_printer
121 ;   public = no
122 ;   writable = no
123 ;   printable = yes
125 ; A private directory, usable only by fred. Note that fred requires write
126 ; access to the directory.
127 ;[fredsdir]
128 ;   comment = Fred's Service
129 ;   path = /usr/somewhere/private
130 ;   valid users = fred
131 ;   public = no
132 ;   writable = yes
133 ;   printable = no
135 ; a service which has a different directory for each machine that connects
136 ; this allows you to tailor configurations to incoming machines. You could
137 ; also use the %u option to tailor it by user name.
138 ; The %m gets replaced with the machine name that is connecting.
139 ;[pchome]
140 ;  comment = PC Directories
141 ;  path = /usr/pc/%m
142 ;  public = no
143 ;  writeable = yes
146 ; A publicly accessible directory, read/write to all users. Note that all files
147 ; created in the directory by users will be owned by the default user, so
148 ; any user with access can delete any other user's files. Obviously this
149 ; directory must be writable by the default user. Another user could of course
150 ; be specified, in which case all files would be owned by that user instead.
151 ;[public]
152 ;   path = /usr/somewhere/else/public
153 ;   public = yes
154 ;   only guest = yes
155 ;   writable = yes
156 ;   printable = no
159 ; The following two entries demonstrate how to share a directory so that two
160 ; users can place files there that will be owned by the specific users. In this
161 ; setup, the directory should be writable by both users and should have the
162 ; sticky bit set on it to prevent abuse. Obviously this could be extended to
163 ; as many users as required.
164 ;[myshare]
165 ;   comment = Mary's and Fred's stuff
166 ;   path = /usr/somewhere/shared
167 ;   valid users = mary fred
168 ;   public = no
169 ;   writable = yes
170 ;   printable = no
171 ;   create mask = 0765