root/packages/fuss-server/templates/smb.conf @ 86321c5793fceb108a1726204d2616c89b92a305

Revision 86321c5793fceb108a1726204d2616c89b92a305, 10.0 KB (checked in by Simone Piccardi <piccardi@…>, 14 months ago)

First release.

  • Property mode set to 100644
Line 
1#
2# Sample configuration file for the Samba suite for Debian GNU/Linux.
3#
4#
5# This is the main Samba configuration file. You should read the
6# smb.conf(5) manual page in order to understand the options listed
7# here. Samba has a huge number of configurable options most of which
8# are not shown in this example
9#
10# Any line which starts with a ; (semi-colon) or a # (hash)
11# is a comment and is ignored. In this example we will use a #
12# for commentary and a ; for parts of the config file that you
13# may wish to enable
14#
15# NOTE: Whenever you modify this file you should run the command
16# "testparm" to check that you have not many any basic syntactic
17# errors.
18#
19
20#======================= Global Settings =======================
21
22[global]
23
24## Browsing/Identification ###
25
26# Change this to the workgroup/NT-domain name your Samba server will part of
27   workgroup = TRUELITE
28
29# server string is the equivalent of the NT Description field
30   server string = %h server (Samba %v)
31
32# Windows Internet Name Serving Support Section:
33# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
34;   wins support = no
35   wins support = yes
36
37# WINS Server - Tells the NMBD components of Samba to be a WINS Client
38# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
39;   wins server = w.x.y.z
40
41# This will prevent nmbd to search for NetBIOS names through DNS.
42   dns proxy = no
43
44# What naming service and in what order should we use to resolve host names
45# to IP addresses
46;   name resolve order = lmhosts host wins bcast
47
48
49#### Debugging/Accounting ####
50
51# This tells Samba to use a separate log file for each machine
52# that connects
53   log file = /var/log/samba/log.%m
54
55# Put a capping on the size of the log files (in Kb).
56   max log size = 1000
57
58# If you want Samba to only log through syslog then set the following
59# parameter to 'yes'.
60;   syslog only = no
61
62# We want Samba to log a minimum amount of information to syslog. Everything
63# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
64# through syslog you should set the following parameter to something higher.
65   syslog = 0
66
67# for normal operations
68   log level = 1
69# for debug use at least this
70#   log level = 2
71
72# Do something sensible when Samba crashes: mail the admin a backtrace
73   panic action = /usr/share/samba/panic-action %d
74
75
76####### Authentication #######
77
78# "security = user" is always a good idea. This will require a Unix account
79# in this server for every user accessing the server. See
80# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
81# package for details.
82   security = user
83
84# You may wish to use password encryption.  See the section on
85# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
86   encrypt passwords = true
87
88# More specific user settings, we want to map unexitent login/user mapped
89# guest access, and map those to the nobody user
90   map to guest = Bad User
91   guest account = nobody
92
93# removing some users, do not do this if you want domain join to work
94;   invalid users = root
95
96# Direttiva per usare l'utente root senza uid=0 (?)
97   enable privileges = yes
98
99# This boolean parameter controls whether Samba attempts to sync the Unix
100# password with the SMB password when the encrypted SMB password in the
101# passdb is changed.
102;   unix password sync = no
103#   unix password sync = yes
104
105# For Unix password sync to work on a Debian GNU/Linux system, the following
106# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
107# sending the correct chat script for the passwd program in Debian Potato).
108;   passwd program = /usr/sbin/smbldap-passwd -u %u
109;   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
110
111
112# If you are using encrypted passwords, Samba will need to know what
113# password database type you are using. 
114   passdb backend = ldapsam:ldap://127.0.0.1/
115#   ldapsam:trusted = yes
116
117   obey pam restrictions = no
118
119# LDAP specific settings
120
121# old setting, if smbk5pwd not working
122;   ldap passwd sync = yes
123
124   ldap passwd sync = only
125   ldap admin dn = cn=admin,dc=domain,dc=local
126   ldap suffix = dc=domain,dc=local
127   ldap group suffix = ou=Groups
128   ldap user suffix = ou=Users
129   ldap machine suffix = ou=Computers
130   #ldap idmap suffix = ou=Idmap
131   #ldap ssl = start_tls
132   ldap ssl = off
133
134
135
136########## Domains ###########
137
138# Is this machine able to authenticate users. Both PDC and BDC
139# must have this setting enabled. If you are the BDC you must
140# change the 'domain master' setting to no
141#
142    domain logons = yes
143# We are PDC
144    domain master = yes
145    preferred master = yes
146    os level = 65
147
148
149# we explicetly disable profiles
150    logon path =
151    logon home =
152
153# Settings for smbldap-tools use
154  add machine script = /usr/sbin/smbldap-useradd -w "%u"
155  add user script = /usr/sbin/smbldap-useradd -a -B1 -m "%u"
156  add group script = /usr/sbin/smbldap-groupadd -p "%g"
157  #ldap delete dn = yes
158  add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
159  delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
160  set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
161
162
163# This boolean controls whether PAM will be used for password changes
164# when requested by an SMB client instead of the program listed in
165# 'passwd program'. The default is 'no'.
166;   pam password change = no
167;   pam password change = yes
168
169########## Printing ##########
170
171# If you want to automatically load your printer list rather
172# than setting them up individually then you'll need this
173   load printers = yes
174
175# lpr(ng) printing. You may wish to override the location of the
176# printcap file
177;   printing = bsd
178;   printcap name = /etc/printcap
179
180# CUPS printing.  See also the cupsaddsmb(8) manpage in the
181# cupsys-client package.
182   printing = cups
183   printcap name = cups
184
185# When using [print$], root is implicitly a 'printer admin', but you can
186# also give this right to other users to add drivers and set printer
187# properties
188#   printer admin = @"Print Operators"
189
190
191# Mixed settings
192#
193    directory mask = 0750
194    create mask = 0640
195    dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
196    show add printer wizard = yes
197
198# Name mangling options
199;   preserve case = yes
200;   short preserve case = yes
201   preserve case = yes
202   short preserve case = yes
203   case sensitive = no
204
205# Char Mapping
206    display charset = UTF-8
207    unix charset = UTF-8
208    dos charset = UTF-8
209
210
211######## File sharing ########
212
213# Name mangling options
214;   preserve case = yes
215;   short preserve case = yes
216
217
218############ Misc ############
219
220# Using the following line enables you to customise your configuration
221# on a per machine basis. The %m gets replaced with the netbios name
222# of the machine that is connecting
223;   include = /home/samba/etc/smb.conf.%m
224
225# Most people will find that this option gives better performance.
226# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
227# for details
228# You may want to add the following on a Linux system:
229#         SO_RCVBUF=8192 SO_SNDBUF=8192
230   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
231
232# The following parameter is useful only if you have the linpopup package
233# installed. The samba maintainer and the linpopup maintainer are
234# working to ease installation and configuration of linpopup and samba.
235;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
236
237# Domain Master specifies Samba to be the Domain Master Browser. If this
238# machine will be configured as a BDC (a secondary logon server), you
239# must set this to 'no'; otherwise, the default behavior is recommended.
240;   domain master = auto
241
242# Some defaults for winbind (make sure you're not using the ranges
243# for something else.)
244;   idmap uid = 10000-20000
245;   idmap gid = 10000-20000
246;   template shell = /bin/bash
247
248
249[homes]
250   comment = Home Directories
251   browseable = no
252   valid users = %U
253
254# By default, the home directories are exported read-only. Change next
255# parameter to 'yes' if you want to be able to write to them.
256;   writable = no
257    read only = no
258
259# File creation mask is set to 0700 for security reasons. If you want to
260# create files with group=rw permissions, set next parameter to 0775.
261   create mask = 0644
262
263# Directory creation mask is set to 0700 for security reasons. If you want to
264# create dirs. with group=rw permissions, set next parameter to 0775.
265   directory mask = 0755
266
267# Un-comment the following and create the netlogon directory for Domain Logons
268# (you need to configure Samba to act as a domain controller too.)
269[netlogon]
270   comment = Network Logon Service
271   path = /home/samba/netlogon
272   browseable = no
273   read only = yes
274;   guest ok = yes
275;   writable = no
276;   share modes = no
277
278#
279# i profili
280#
281[profiles]
282   path=/home/samba/profiles
283   read only = no
284   create mask = 0600
285   directory mask = 0700
286   browseable = no
287   guest ok = yes
288   profile acls = yes
289   csc policy = disable
290   force user = %U
291   valid users = %U @"Domain Admins"
292
293[printers]
294   comment = All Printers
295   browseable = no
296   path = /tmp
297   printable = yes
298   public = no
299   writable = no
300   create mode = 0700
301
302# Windows clients look for this share name as a source of downloadable
303# printer drivers
304[print$]
305   comment = Printer Drivers
306   path = /var/lib/samba/printers
307   browseable = yes
308   read only = yes
309   guest ok = no
310# Uncomment to allow remote administration of Windows print drivers.
311# Replace 'ntadmin' with the name of the group your admin users are
312# members of.
313;   write list = root, @ntadmin
314
315# A sample share for sharing your CD-ROM with others.
316;[cdrom]
317;   comment = Samba server's CD-ROM
318;   writable = no
319;   locking = no
320;   path = /cdrom
321;   public = yes
322
323# The next two parameters show how to auto-mount a CD-ROM when the
324#       cdrom share is accesed. For this to work /etc/fstab must contain
325#       an entry like this:
326#
327#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
328#
329# The CD-ROM gets unmounted automatically after the connection to the
330#
331# If you don't want to use auto-mounting/unmounting make sure the CD
332#       is mounted on /cdrom
333#
334;   preexec = /bin/mount /cdrom
335;   postexec = /bin/umount /cdrom
336
337
338#======================= Share Definitions =======================
339
Note: See TracBrowser for help on using the browser.