1 |
|
|
2 |
; This is the main Samba configuration file. You should read the |
; This is the main Samba configuration file. You should read the |
3 |
; smb.conf(5) manual page in order to understand the options listed |
; smb.conf(5) manual page in order to understand the options listed |
4 |
; here. Samba has a huge number of configurable options (perhaps too |
; here. Samba has a huge number of configurable options (perhaps too |
5 |
; many!) most of which are not shown in this example |
; many!) most of which are not shown in this example |
6 |
|
; |
7 |
; Any line which starts with a ; (semi-colon) or a # (hash) |
; Any line which starts with a ; (semi-colon) or a # (hash) |
8 |
; is a comment and is ignored. In this example we will use a # |
; is a comment and is ignored. In this example we will use a # |
9 |
; for commentry and a ; for parts of the config file that you |
; for commentry and a ; for parts of the config file that you |
10 |
; may wish to enable |
; may wish to enable |
11 |
|
; |
12 |
; NOTE: Whenever you modify this file you should run the command "testparm" |
; NOTE: Whenever you modify this file you should run the command "testparm" |
13 |
; to check that you have not made any basic syntactic errors. |
; to check that you have not made any basic syntactic errors. |
14 |
|
; |
15 |
;======================= Global Settings ===================================== |
;======================= Global Settings ===================================== |
16 |
[global] |
[global] ; comments |
17 |
|
|
18 |
; 1. Server Naming Options: |
; 1. Server Naming Options: |
19 |
; workgroup = NT-Domain-Name or Workgroup-Name |
; workgroup = NT-Domain-Name or Workgroup-Name |
20 |
workgroup = MDKGROUP |
workgroup = MDKGROUP ;comments |
21 |
|
|
22 |
; netbios name is the name you will see in "Network Neighbourhood", |
; netbios name is the name you will see in "Network Neighbourhood", |
23 |
; but defaults to your hostname |
; but defaults to your hostname |
24 |
netbios name = gandalf |
netbios name = gandalf |
25 |
|
|
26 |
; server string is the equivalent of the NT Description field |
; server string is the equivalent of the NT Description field |
27 |
server string = Samba Server %v |
server string = Samba Server %v |
28 |
|
|
29 |
; Message command is run by samba when a "popup" message is sent to it. |
; Message command is run by samba when a "popup" message is sent to it. |
30 |
; The example below is for use with LinPopUp: |
; The example below is for use with LinPopUp: |
31 |
;message command = /usr/bin/Linpopup "%f" "%m" %s; rm %s |
;message command = /usr/bin/Linpopup "%f" "%m" %s; rm %s |
32 |
|
|
33 |
; 2. Printing Options: |
; 2. Printing Options: |
34 |
; CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK |
; CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK |
35 |
; (as cups is now used in linux-mandrake 7.2 by default) |
; (as cups is now used in linux-mandrake 7.2 by default) |
37 |
; than setting them up individually then you'll need this |
; than setting them up individually then you'll need this |
38 |
printcap name = lpstat |
printcap name = lpstat |
39 |
load printers = yes |
load printers = yes |
40 |
|
|
41 |
; It should not be necessary to spell out the print system type unless |
; It should not be necessary to spell out the print system type unless |
42 |
; yours is non-standard. Currently supported print systems include: |
; yours is non-standard. Currently supported print systems include: |
43 |
; bsd, sysv, plp, lprng, aix, hpux, qnx, cups |
; bsd, sysv, plp, lprng, aix, hpux, qnx, cups |
44 |
printing = cups |
printing = cups |
45 |
|
|
46 |
; Samba 2.2 supports the Windows NT-style point-and-print feature. To |
; Samba 2.2 supports the Windows NT-style point-and-print feature. To |
47 |
; use this, you need to be able to upload print drivers to the samba |
; use this, you need to be able to upload print drivers to the samba |
48 |
; server. The printer admins (or root) may install drivers onto samba. |
; server. The printer admins (or root) may install drivers onto samba. |
51 |
; This parameter works like domain admin group: |
; This parameter works like domain admin group: |
52 |
; printer admin = @<group> <user> |
; printer admin = @<group> <user> |
53 |
; printer admin = @adm |
; printer admin = @adm |
54 |
|
|
55 |
; 3. Logging Options: |
; 3. Logging Options: |
56 |
; this tells Samba to use a separate log file for each machine |
; this tells Samba to use a separate log file for each machine |
57 |
; that connects |
; that connects |
58 |
log file = /var/log/samba/log.%m |
log file = /var/log/samba/log.%m |
59 |
|
|
60 |
; Put a capping on the size of the log files (in Kb). |
; Put a capping on the size of the log files (in Kb). |
61 |
max log size = 50 |
max log size = 50 |
62 |
|
|
63 |
; Set the log (verbosity) level (0 <= log level <= 10) |
; Set the log (verbosity) level (0 <= log level <= 10) |
64 |
; log level = 3 |
; log level = 3 |
65 |
|
|
66 |
; 4. Security and Domain Membership Options: |
; 4. Security and Domain Membership Options: |
67 |
; This option is important for security. It allows you to restrict |
; This option is important for security. It allows you to restrict |
68 |
; connections to machines which are on your local network. The |
; connections to machines which are on your local network. The |
71 |
; the smb.conf man page. Do not enable this if (tcp/ip) name resolution does |
; the smb.conf man page. Do not enable this if (tcp/ip) name resolution does |
72 |
; not work for all the hosts in your network. |
; not work for all the hosts in your network. |
73 |
hosts allow = 192.168.0. 127. |
hosts allow = 192.168.0. 127. |
74 |
|
|
75 |
; Uncomment this if you want a guest account, you must add this to /etc/passwd |
; Uncomment this if you want a guest account, you must add this to /etc/passwd |
76 |
; otherwise the user "nobody" is used |
; otherwise the user "nobody" is used |
77 |
guest account = smbguest |
guest account = smbguest |
78 |
|
|
79 |
; Security mode. Most people will want user level security. See |
; Security mode. Most people will want user level security. See |
80 |
; security_level.txt for details. |
; security_level.txt for details. |
81 |
security = share |
security = share |
83 |
; When using security = domain, you should use password server = * |
; When using security = domain, you should use password server = * |
84 |
; password server = <NT-Server-Name> |
; password server = <NT-Server-Name> |
85 |
; password server = * |
; password server = * |
86 |
|
|
87 |
; Password Level allows matching of _n_ characters of the password for |
; Password Level allows matching of _n_ characters of the password for |
88 |
; all combinations of upper and lower case. |
; all combinations of upper and lower case. |
89 |
; password level = 8 |
; password level = 8 |
90 |
; username level = 8 |
; username level = 8 |
91 |
|
|
92 |
; You may wish to use password encryption. Please read |
; You may wish to use password encryption. Please read |
93 |
; ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. |
; ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. |
94 |
; Do not enable this option unless you have read those documents |
; Do not enable this option unless you have read those documents |
97 |
; members of a domain do not need one. |
; members of a domain do not need one. |
98 |
; encrypt passwords = yes |
; encrypt passwords = yes |
99 |
; smb passwd file = /etc/samba/smbpasswd |
; smb passwd file = /etc/samba/smbpasswd |
100 |
|
|
101 |
; The following are needed to allow password changing from Windows to |
; The following are needed to allow password changing from Windows to |
102 |
; also update the Linux system password. |
; also update the Linux system password. |
103 |
; NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. |
; NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. |
108 |
; passwd program = /usr/bin/passwd %u |
; passwd program = /usr/bin/passwd %u |
109 |
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n |
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n |
110 |
;*passwd:*all*authentication*tokens*updated*successfully* |
;*passwd:*all*authentication*tokens*updated*successfully* |
111 |
|
|
112 |
; Unix users can map to different SMB User names |
; Unix users can map to different SMB User names |
113 |
; username map = /etc/samba/smbusers |
; username map = /etc/samba/smbusers |
114 |
|
|
115 |
; Using the following line enables you to customise your configuration |
; Using the following line enables you to customise your configuration |
116 |
; on a per machine basis. The %m gets replaced with the netbios name |
; on a per machine basis. The %m gets replaced with the netbios name |
117 |
; of the machine that is connecting |
; of the machine that is connecting |
118 |
; include = /etc/samba/smb.conf.%m |
; include = /etc/samba/smb.conf.%m |
119 |
|
|
120 |
; Options for using winbind. Winbind allows you to do all account and |
; Options for using winbind. Winbind allows you to do all account and |
121 |
; authentication from a Windows or samba domain controller, creating |
; authentication from a Windows or samba domain controller, creating |
122 |
; accounts on the fly, and maintaining a mapping of Windows RIDs to unix uid's |
; accounts on the fly, and maintaining a mapping of Windows RIDs to unix uid's |
123 |
; and gid's. winbind uid and winbind gid are the only required parameters. |
; and gid's. winbind uid and winbind gid are the only required parameters. |
124 |
|
; |
125 |
; winbind uid is the range of uid's winbind can use when mapping RIDs to uid's |
; winbind uid is the range of uid's winbind can use when mapping RIDs to uid's |
126 |
; winbind uid = 10000-20000 |
; winbind uid = 10000-20000 |
127 |
|
; |
128 |
; winbind gid is the range of uid's winbind can use when mapping RIDs to gid's |
; winbind gid is the range of uid's winbind can use when mapping RIDs to gid's |
129 |
; winbind gid = 10000-20000 |
; winbind gid = 10000-20000 |
130 |
|
; |
131 |
; winbind separator is the character a user must use between their domain |
; winbind separator is the character a user must use between their domain |
132 |
; name and username, defaults to "\" |
; name and username, defaults to "\" |
133 |
; winbind separator = + |
; winbind separator = + |
134 |
|
; |
135 |
; template homedir determines the home directory for winbind users, with |
; template homedir determines the home directory for winbind users, with |
136 |
; %D expanding to their domain name and %U expanding to their username: |
; %D expanding to their domain name and %U expanding to their username: |
137 |
; template homedir = /home/%D/%U |
; template homedir = /home/%D/%U |
138 |
|
; |
139 |
; template shell determines the shell users authenticated by winbind get |
; template shell determines the shell users authenticated by winbind get |
140 |
; template shell = /bin/bash |
; template shell = /bin/bash |
141 |
|
|
142 |
; 5. Browser Control and Networking Options: |
; 5. Browser Control and Networking Options: |
143 |
; Most people will find that this option gives better performance. |
; Most people will find that this option gives better performance. |
144 |
; See speed.txt and the manual pages for details |
; See speed.txt and the manual pages for details |
145 |
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
146 |
|
|
147 |
; Configure Samba to use multiple interfaces |
; Configure Samba to use multiple interfaces |
148 |
; If you have multiple network interfaces then you must list them |
; If you have multiple network interfaces then you must list them |
149 |
; here. See the man page for details. |
; here. See the man page for details. |
150 |
; interfaces = 192.168.12.2/24 192.168.13.2/24 |
; interfaces = 192.168.12.2/24 192.168.13.2/24 |
151 |
|
|
152 |
; Configure remote browse list synchronisation here |
; Configure remote browse list synchronisation here |
153 |
; request announcement to, or browse list sync from: |
; request announcement to, or browse list sync from: |
154 |
; a specific host or from / to a whole subnet (see below) |
; a specific host or from / to a whole subnet (see below) |
155 |
; remote browse sync = 192.168.3.25 192.168.5.255 |
; remote browse sync = 192.168.3.25 192.168.5.255 |
156 |
; Cause this host to announce itself to local subnets here |
; Cause this host to announce itself to local subnets here |
157 |
; remote announce = 192.168.1.255 192.168.2.44 |
; remote announce = 192.168.1.255 192.168.2.44 |
158 |
|
|
159 |
; set local master to no if you don't want Samba to become a master |
; set local master to no if you don't want Samba to become a master |
160 |
; browser on your network. Otherwise the normal election rules apply |
; browser on your network. Otherwise the normal election rules apply |
161 |
; local master = no |
; local master = no |
162 |
|
|
163 |
; OS Level determines the precedence of this server in master browser |
; OS Level determines the precedence of this server in master browser |
164 |
; elections. The default value should be reasonable |
; elections. The default value should be reasonable |
165 |
; os level = 33 |
; os level = 33 |
166 |
|
|
167 |
; Domain Master specifies Samba to be the Domain Master Browser. This |
; Domain Master specifies Samba to be the Domain Master Browser. This |
168 |
; allows Samba to collate browse lists between subnets. Don't use this |
; allows Samba to collate browse lists between subnets. Don't use this |
169 |
; if you already have a Windows NT domain controller doing this job |
; if you already have a Windows NT domain controller doing this job |
170 |
; domain master = yes |
; domain master = yes |
171 |
|
|
172 |
; Preferred Master causes Samba to force a local browser election on startup |
; Preferred Master causes Samba to force a local browser election on startup |
173 |
; and gives it a slightly higher chance of winning the election |
; and gives it a slightly higher chance of winning the election |
174 |
; preferred master = yes |
; preferred master = yes |
175 |
|
|
176 |
; 6. Domain Control Options: |
; 6. Domain Control Options: |
177 |
; Enable this if you want Samba to be a domain logon server for |
; Enable this if you want Samba to be a domain logon server for |
178 |
; Windows95 workstations or Primary Domain Controller for WinNT and Win2k |
; Windows95 workstations or Primary Domain Controller for WinNT and Win2k |
179 |
; domain logons = yes |
; domain logons = yes |
180 |
|
|
181 |
; if you enable domain logons then you may want a per-machine or |
; if you enable domain logons then you may want a per-machine or |
182 |
; per user logon script |
; per user logon script |
183 |
; run a specific logon batch file per workstation (machine) |
; run a specific logon batch file per workstation (machine) |
184 |
; logon script = %m.bat |
; logon script = %m.bat |
185 |
; run a specific logon batch file per username |
; run a specific logon batch file per username |
186 |
; logon script = %U.bat |
; logon script = %U.bat |
187 |
|
|
188 |
; Where to store roaming profiles for WinNT and Win2k |
; Where to store roaming profiles for WinNT and Win2k |
189 |
; %L substitutes for this servers netbios name, %U is username |
; %L substitutes for this servers netbios name, %U is username |
190 |
; You must uncomment the [Profiles] share below |
; You must uncomment the [Profiles] share below |
191 |
; logon path = \\%L\Profiles\%U |
; logon path = \\%L\Profiles\%U |
192 |
|
|
193 |
; Where to store roaming profiles for Win9x. Be careful with this as it also |
; Where to store roaming profiles for Win9x. Be careful with this as it also |
194 |
; impacts where Win2k finds it's /HOME share |
; impacts where Win2k finds it's /HOME share |
195 |
; logon home = \\%L\%U\.profile |
; logon home = \\%L\%U\.profile |
196 |
|
|
197 |
; The add user script is used by a domain member to add local user accounts |
; The add user script is used by a domain member to add local user accounts |
198 |
; that have been authenticated by the domain controller, or by the domain |
; that have been authenticated by the domain controller, or by the domain |
199 |
; controller to add local machine accounts when adding machines to the domain. |
; controller to add local machine accounts when adding machines to the domain. |
200 |
; The script must work from the command line when replacing the macros, |
; The script must work from the command line when replacing the macros, |
201 |
; or the operation will fail. Check that groups exist if forcing a group. |
; or the operation will fail. Check that groups exist if forcing a group. |
202 |
; Script for domain controller for adding machines: |
; Script for domain controller for adding machines: |
203 |
; add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u |
; add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u |
204 |
; Script for domain member for adding local accounts for authenticated users: |
; Script for domain member for adding local accounts for authenticated users: |
205 |
; add user script = /usr/sbin/useradd -s /bin/false %u |
; add user script = /usr/sbin/useradd -s /bin/false %u |
206 |
|
|
207 |
; Domain groups: |
; Domain groups: |
208 |
; domain admin group is a list of unix users or groups who are made members |
; domain admin group is a list of unix users or groups who are made members |
209 |
; of the Domain Admin group |
; of the Domain Admin group |
210 |
; domain admin group = root @wheel |
; domain admin group = root @wheel |
211 |
|
; |
212 |
; domain guest groups is a list of unix users or groups who are made members |
; domain guest groups is a list of unix users or groups who are made members |
213 |
; of the Domain Guests group |
; of the Domain Guests group |
214 |
; domain guest group = nobody @guest |
; domain guest group = nobody @guest |
215 |
|
|
216 |
; 7. Name Resolution Options: |
; 7. Name Resolution Options: |
217 |
; All NetBIOS names must be resolved to IP Addresses |
; All NetBIOS names must be resolved to IP Addresses |
218 |
; 'Name Resolve Order' allows the named resolution mechanism to be specified |
; 'Name Resolve Order' allows the named resolution mechanism to be specified |
219 |
; the default order is "host lmhosts wins bcast". "host" means use the unix |
; the default order is "host lmhosts wins bcast". "host" means use the unix |
220 |
; system gethostbyname() function call that will use either /etc/hosts OR |
; system gethostbyname() function call that will use either /etc/hosts OR |
221 |
; DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf |
; DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf |
222 |
; and the /etc/resolv.conf file. "host" therefore is system configuration |
; and the /etc/resolv.conf file. "host" therefore is system configuration |
223 |
; dependant. This parameter is most often of use to prevent DNS lookups |
; dependant. This parameter is most often of use to prevent DNS lookups |
224 |
; in order to resolve NetBIOS names to IP Addresses. Use with care! |
; in order to resolve NetBIOS names to IP Addresses. Use with care! |
225 |
; The example below excludes use of name resolution for machines that are NOT |
; The example below excludes use of name resolution for machines that are NOT |
226 |
; on the local network segment |
; on the local network segment |
227 |
; - OR - are not deliberately to be known via lmhosts or via WINS. |
; - OR - are not deliberately to be known via lmhosts or via WINS. |
228 |
; name resolve order = wins lmhosts bcast |
; name resolve order = wins lmhosts bcast |
229 |
|
|
230 |
; Windows Internet Name Serving Support Section: |
; Windows Internet Name Serving Support Section: |
231 |
; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server |
; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server |
232 |
; wins support = yes |
; wins support = yes |
233 |
|
|
234 |
; WINS Server - Tells the NMBD components of Samba to be a WINS Client |
; WINS Server - Tells the NMBD components of Samba to be a WINS Client |
235 |
; Note: Samba can be either a WINS Server, or a WINS Client, but NOT both |
; Note: Samba can be either a WINS Server, or a WINS Client, but NOT both |
236 |
; wins server = w.x.y.z |
; wins server = w.x.y.z |
237 |
|
|
238 |
; WINS Proxy - Tells Samba to answer name resolution queries on |
; WINS Proxy - Tells Samba to answer name resolution queries on |
239 |
; behalf of a non WINS capable client, for this to work there must be |
; behalf of a non WINS capable client, for this to work there must be |
240 |
; at least one WINS Server on the network. The default is NO. |
; at least one WINS Server on the network. The default is NO. |
241 |
; wins proxy = yes |
; wins proxy = yes |
242 |
|
|
243 |
; DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names |
; DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names |
244 |
; via DNS nslookups. The built-in default for versions 1.9.17 is yes, |
; via DNS nslookups. The built-in default for versions 1.9.17 is yes, |
245 |
; this has been changed in version 1.9.18 to no. |
; this has been changed in version 1.9.18 to no. |
246 |
; dns proxy = no |
; dns proxy = no |
247 |
|
|
248 |
; 8. File Naming Options: |
; 8. File Naming Options: |
249 |
; Case Preservation can be handy - system default is _no_ |
; Case Preservation can be handy - system default is _no_ |
250 |
; NOTE: These can be set on a per share basis |
; NOTE: These can be set on a per share basis |
251 |
; preserve case = no |
; preserve case = no |
252 |
; short preserve case = no |
; short preserve case = no |
253 |
; Default case is normally upper case for all DOS files |
; Default case is normally upper case for all DOS files |
254 |
; default case = lower |
; default case = lower |
255 |
; Be very careful with case sensitivity - it can break things! |
; Be very careful with case sensitivity - it can break things! |
256 |
; case sensitive = no |
; case sensitive = no |
257 |
|
|
258 |
; Enabling internationalization: |
; Enabling internationalization: |
259 |
; you can match a Windows code page with a UNIX character set. |
; you can match a Windows code page with a UNIX character set. |
260 |
; Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European), |
; Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European), |
261 |
; 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian), |
; 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian), |
262 |
; 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul), |
; 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul), |
263 |
; 950 (Trad. Chin.). |
; 950 (Trad. Chin.). |
264 |
; UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.), |
; UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.), |
265 |
; ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.) |
; ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.) |
266 |
; This is an example for french users: |
; This is an example for french users: |
267 |
; client code page = 850 |
; client code page = 850 |
268 |
; character set = ISO8859-1 |
; character set = ISO8859-1 |
269 |
|
|
270 |
|
|
271 |
;============================ Share Definitions ============================== |
;============================ Share Definitions ============================== |
272 |
[homes] |
[homes] |
273 |
comment = Home Directories |
comment = Home Directories |
274 |
browseable = no |
browseable = no |
275 |
writable = yes |
writable = yes |
276 |
|
|
277 |
[partage] |
[partage] |
278 |
comment = description du partage |
comment = description du partage |
279 |
path = /mnt/BIG/samba/share1 |
path = /mnt/BIG/samba/share1 |
282 |
read only = no |
read only = no |
283 |
create mask = 0775 |
create mask = 0775 |
284 |
directory mask = 0775 |
directory mask = 0775 |
285 |
|
|
286 |
; Un-comment the following and create the netlogon directory for Domain Logons |
; Un-comment the following and create the netlogon directory for Domain Logons |
287 |
; [netlogon] |
; [netlogon] |
288 |
; comment = Network Logon Service |
; comment = Network Logon Service |
289 |
; path = /var/lib/samba/netlogon |
; path = /var/lib/samba/netlogon |
290 |
; guest ok = yes |
; guest ok = yes |
291 |
; writable = no |
; writable = no |
292 |
|
|
293 |
;Uncomment the following 2 lines if you would like your login scripts to |
;Uncomment the following 2 lines if you would like your login scripts to |
294 |
;be created dynamically by ntlogon (check that you have it in the correct |
;be created dynamically by ntlogon (check that you have it in the correct |
295 |
;location (the default of the ntlogon rpm available in contribs) |
;location (the default of the ntlogon rpm available in contribs) |
296 |
;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon |
;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon |
297 |
;root postexec = rm -f /var/lib/samba/netlogon/%U.bat |
;root postexec = rm -f /var/lib/samba/netlogon/%U.bat |
298 |
|
|
299 |
; Un-comment the following to provide a specific roving profile share |
; Un-comment the following to provide a specific roving profile share |
300 |
; the default is to use the user's home directory |
; the default is to use the user's home directory |
301 |
;[Profiles] |
;[Profiles] |
302 |
; path = /var/lib/samba/profiles |
; path = /var/lib/samba/profiles |
303 |
; browseable = no |
; browseable = no |
304 |
; guest ok = yes |
; guest ok = yes |
305 |
|
|
306 |
|
|
307 |
; NOTE: If you have a CUPS print system there is no need to |
; NOTE: If you have a CUPS print system there is no need to |
308 |
; specifically define each individual printer. |
; specifically define each individual printer. |
309 |
; You must configure the samba printers with the appropriate Windows |
; You must configure the samba printers with the appropriate Windows |
310 |
; drivers on your Windows clients. On the Samba server no filtering is |
; drivers on your Windows clients. On the Samba server no filtering is |
311 |
; done. If you wish that the server provides the driver and the clients |
; done. If you wish that the server provides the driver and the clients |
312 |
; send PostScript ("Generic PostScript Printer" under Windows), you have |
; send PostScript ("Generic PostScript Printer" under Windows), you have |
313 |
; to swap the 'print command' line below with the commented one. |
; to swap the 'print command' line below with the commented one. |
314 |
[printers] |
[printers] |
315 |
comment = All Printers |
comment = All Printers |
316 |
path = /var/spool/samba |
path = /var/spool/samba |
323 |
; ===================================== |
; ===================================== |
324 |
; print command: see above for details. |
; print command: see above for details. |
325 |
; ===================================== |
; ===================================== |
326 |
; using client side printer drivers. |
print command = lpr-cups -P %p -o raw %s -r ; using client side printer drivers. |
|
print command = lpr-cups -P %p -o raw %s -r |
|
327 |
; print command = lpr-cups -P %p %s ; using cups own drivers (use generic PostScript on clients). |
; print command = lpr-cups -P %p %s ; using cups own drivers (use generic PostScript on clients). |
328 |
; The following two commands are the samba defaults for printing=cups |
; The following two commands are the samba defaults for printing=cups |
329 |
; change them only if you need different options: |
; change them only if you need different options: |
330 |
; lpq command = lpq -P %p |
; lpq command = lpq -P %p |
331 |
; lprm command = cancel %p-%j |
; lprm command = cancel %p-%j |
332 |
|
|
333 |
; This share is used for Windows NT-style point-and-print support. |
; This share is used for Windows NT-style point-and-print support. |
334 |
; To be able to install drivers, you need to be either root, or listed |
; To be able to install drivers, you need to be either root, or listed |
335 |
; in the printer admin parameter above. Note that you also need write access |
; in the printer admin parameter above. Note that you also need write access |
341 |
; browseable = yes |
; browseable = yes |
342 |
; read only = yes |
; read only = yes |
343 |
; write list = @adm root |
; write list = @adm root |
344 |
|
|
345 |
; This one is useful for people to share files |
; This one is useful for people to share files |
346 |
;[tmp] |
;[tmp] |
347 |
; comment = Temporary file space |
; comment = Temporary file space |
348 |
; path = /tmp |
; path = /tmp |
349 |
; read only = no |
; read only = no |
350 |
; public = yes |
; public = yes |
351 |
|
|
352 |
; A publicly accessible directory, but read only, except for people in |
; A publicly accessible directory, but read only, except for people in |
353 |
; the "staff" group |
; the "staff" group |
354 |
;[public] |
;[public] |
357 |
; public = yes |
; public = yes |
358 |
; writable = no |
; writable = no |
359 |
; write list = @staff |
; write list = @staff |
360 |
|
|
361 |
; Other examples. |
; Other examples. |
362 |
|
; |
363 |
; A private printer, usable only by Fred. Spool data will be placed in Fred's |
; A private printer, usable only by Fred. Spool data will be placed in Fred's |
364 |
; home directory. Note that fred must have write access to the spool directory, |
; home directory. Note that fred must have write access to the spool directory, |
365 |
; wherever it is. |
; wherever it is. |
371 |
; public = no |
; public = no |
372 |
; writable = no |
; writable = no |
373 |
; printable = yes |
; printable = yes |
374 |
|
|
375 |
; A private directory, usable only by Fred. Note that Fred requires write |
; A private directory, usable only by Fred. Note that Fred requires write |
376 |
; access to the directory. |
; access to the directory. |
377 |
;[fredsdir] |
;[fredsdir] |
381 |
; public = no |
; public = no |
382 |
; writable = yes |
; writable = yes |
383 |
; printable = no |
; printable = no |
384 |
|
|
385 |
; a service which has a different directory for each machine that connects |
; a service which has a different directory for each machine that connects |
386 |
; this allows you to tailor configurations to incoming machines. You could |
; this allows you to tailor configurations to incoming machines. You could |
387 |
; also use the %u option to tailor it by user name. |
; also use the %u option to tailor it by user name. |
391 |
; path = /usr/pc/%m |
; path = /usr/pc/%m |
392 |
; public = no |
; public = no |
393 |
; writable = yes |
; writable = yes |
394 |
|
|
395 |
; A publicly accessible directory, read/write to all users. Note that all files |
; A publicly accessible directory, read/write to all users. Note that all files |
396 |
; created in the directory by users will be owned by the default user, so |
; created in the directory by users will be owned by the default user, so |
397 |
; any user with access can delete any other user's files. Obviously this |
; any user with access can delete any other user's files. Obviously this |
403 |
; only guest = yes |
; only guest = yes |
404 |
; writable = yes |
; writable = yes |
405 |
; printable = no |
; printable = no |
406 |
|
|
407 |
; The following two entries demonstrate how to share a directory so that two |
; The following two entries demonstrate how to share a directory so that two |
408 |
; users can place files there that will be owned by the specific users. In this |
; users can place files there that will be owned by the specific users. In this |
409 |
; setup, the directory should be writable by both users and should have the |
; setup, the directory should be writable by both users and should have the |
417 |
; writable = yes |
; writable = yes |
418 |
; printable = no |
; printable = no |
419 |
; create mask = 0765 |
; create mask = 0765 |
|
|
|
420 |
K1 = yo |
K1 = yo |