Pièce jointe « smb.conf.txt »
Téléchargement 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 client NTLMv2 auth = Yes
24 client lanman auth = No
25 client plaintext auth = No
26
27 security = ADS
28 realm = bureautique.fr.auf
29 password server = cdsorb.bureautique.fr.auf
30
31
32 # separate domain and username with '+', like DOMAIN+username
33 winbind separator = /
34 # use uids from 10000 to 20000 for domain users
35 idmap uid = 10000-20000
36 # use gids from 10000 to 20000 for domain groups
37
38 winbind gid = 10000-20000
39 # allow enumeration of winbind users and groups
40 winbind enum users = yes
41 winbind enum groups = yes
42 # give winbind users a real shell (only needed if they have telnet access)
43 template homedir = /home/winnt/%D/%U
44 template shell = /bin/bash
45
46 ## Browsing/Identification ###
47
48 # Change this to the workgroup/NT-domain name your Samba server will part of
49 workgroup = bureautique
50
51 # server string is the equivalent of the NT Description field
52 server string = %h server (Samba, Ubuntu)
53
54 #### Debugging/Accounting ####
55
56 # This tells Samba to use a separate log file for each machine
57 # that connects
58 log file = /var/log/samba/log.%m
59
60 # Put a capping on the size of the log files (in Kb).
61 max log size = 1000
62
63 # If you want Samba to only log through syslog then set the following
64 # parameter to 'yes'.
65 ; syslog only = no
66
67 # We want Samba to log a minimum amount of information to syslog. Everything
68 # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
69 # through syslog you should set the following parameter to something higher.
70 syslog = 10
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 username map = /etc/samba/smbusers
84
85 # You may wish to use password encryption. See the section on
86 # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
87 encrypt passwords = true
88
89 # If you are using encrypted passwords, Samba will need to know what
90 # password database type you are using.
91 passdb backend = tdbsam guest
92
93 obey pam restrictions = yes
94
95 ; guest account = nobody
96 invalid users = root
97
98
99 # For Unix password sync to work on a Debian GNU/Linux system, the following
100 # parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
101 # sending the correct chat script for the passwd program in Debian Potato).
102 passwd program = /usr/bin/passwd %u
103 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
104
105 ############ Misc ############
106
107
108 # Most people will find that this option gives better performance.
109 # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
110 # for details
111 # You may want to add the following on a Linux system:
112 # SO_RCVBUF=8192 SO_SNDBUF=8192
113 socket options = TCP_NODELAY
114
115
116 #======================= Share Definitions =======================
117
118 [homes]
119 comment = Home Directories
120 browseable = no
121
122 # By default, the home directories are exported read-only. Change next
123 # parameter to 'yes' if you want to be able to write to them.
124 writable = yes
125
126 # File creation mask is set to 0700 for security reasons. If you want to
127 # create files with group=rw permissions, set next parameter to 0775.
128 create mask = 0700
129
130 # Directory creation mask is set to 0700 for security reasons. If you want to
131 # create dirs. with group=rw permissions, set next parameter to 0775.
132 directory mask = 0700
133
134
135 [printers]
136 comment = All Printers
137 browseable = no
138 path = /tmp
139 printable = yes
140 public = no
141 writable = no
142 create mode = 0700
143
144 # Windows clients look for this share name as a source of downloadable
145 # printer drivers
146 [print$]
147 comment = Printer Drivers
148 path = /var/lib/samba/printers
149 browseable = yes
150 read only = yes
151 guest ok = no
Fichiers joints
Pour vous référer aux pièces jointes d'une page, utilisez attachment:filename, comme indiqué ci-dessous dans la liste de fichiers. N'utilisez pas l'URL du lien [get], car elle peut changer et donc être facilement cassée.Vous n'êtes pas autorisé à joindre un fichier à cette page.