This file is indexed.

/usr/share/zentyal/stubs/samba/smb.conf.mas is in zentyal-samba 2.3.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<%args>
    $pdc => 1
    $netbios
    $workgroup
    $desc
    $ifaces
    $ldap
    @dirgroup
    @printers
    $active_printer
    $backup_path
    $quarantine_path
    $roaming
    @shares
    $guest_shares
    $antivirus
    %antivirus_exceptions
    $recycle
    %recycle_exceptions
    $recycle_config
    $drive
    $prefix
    $logon_script => 'zentyal-logon.bat'
</%args>
<%init>
use EBox::Gettext;
</%init>
[global]
 workgroup = <% $workgroup %>
 netbios name = <% $netbios %>
 server string = <% $desc %>
 enable privileges = yes
 interfaces = <% $ifaces %>
 bind interfaces only = yes
 passdb backend = ldapsam:<% $ldap->{'ldapi'} %>
 ldap ssl = off
 log level = 1
 syslog = 0
 log file = /var/log/samba/%m
 max log size = 50
 include = /etc/samba/smb.conf.%m
 vfs objects = full_audit
 full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
 full_audit:failure = none
 smb ports = 137 138 139 445
 name resolve order = wins bcast hosts
 time server = yes
 printcap name = CUPS
 wins support = yes
 dns proxy = yes
 ldap suffix = <% $ldap->{'dn'} %>
 ldap machine suffix = ou=Computers
 ldap user suffix =  <% $ldap->{'users'} %>
 ldap group suffix =  <% $ldap->{'groups'} %>
 ldap idmap suffix = ou=Idmap
 ldap admin dn = <% $ldap->{'rootdn'} %>
 map acl inherit = yes
 printing = cups
% if ($guest_shares) {
 map to guest = Bad User
% }
% if ($pdc) {
 encrypt passwords = yes
 obey pam restrictions = no
 ldap passwd sync = yes
 mangling method = hash2
 logon script = <% $logon_script %>
 logon drive = <% $drive %>
 logon home =
% if ($roaming) {
 logon path = \\<% $netbios %>\profiles\%U
% } else {
 logon path =
% }
 domain logons = yes
 os level = 65
 preferred master = yes
 domain master = yes
 add user script = /usr/sbin/smbldap-useradd -m "%u"
 ldap delete dn = yes
 add machine script = /usr/sbin/smbldap-useradd -w "%u"
 add group script = /usr/sbin/smbldap-groupadd -p "%g"
 add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
 delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
 set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

[netlogon]
 path = /home/samba/netlogon/
 browseable = no
 read only = yes

[profiles]
 path = /home/samba/profiles
 browseable = no
 read only = no
 guest ok = yes
 valid users = %U
 admin users = @"Domain Admins"
 map hidden = yes
 map system = yes
 create mask = 0611
 directory mask = 0711
 profile acls = yes
 csc policy = disable
 hide files = /desktop.ini/outlook*.lnk/*Briefcase*/
% }

[homes]
 comment = <% __('Home Directories') %>
 valid users = %S
 read only = no
 browseable = no
% my $av = ($antivirus xor defined($antivirus_exceptions{'users'}));
% my $rb = ($recycle xor defined($recycle_exceptions{'users'}));
% my $objects = 'full_audit';
% if ($av) {
%   $objects .= ' vscan-clamav';
% }
% if ($rb) {
%   $objects .= ' recycle';
% }
 vfs objects = <% $objects %>
% if ($av) {
 vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
% }
% if ($rb) {
%   foreach my $key (keys %{$recycle_config}) {
%     next unless $key;
 recycle: <% $key %> = <% $recycle_config->{$key} %>
%    }
% }

% foreach my $group (@dirgroup) {
[<% $group->{'sharename'} %>]
% if ($group->{'groupcomment'}) {
 comment = "<% $group->{'groupcomment'} %>"
% } else {
 comment = "<% __x('{group} share directory', group => $group->{'groupname'}) %>"
% }
 path = <% $group->{'path'} %>
 browseable = yes
 read only = no
 valid users = @"<% $group->{'groupname'} %>"
 force group = "<% $group->{'groupname'} %>"
 force create mode = 0660
 force directory mode = 0660
% my $av = ($antivirus xor defined($antivirus_exceptions{'group'}->{$group->{'sharename'}}));
% my $rb = ($recycle xor defined($recycle_exceptions{'group'}->{$group->{'sharename'}}));
% my $objects = 'full_audit';
% if ($av) {
%   $objects .= ' vscan-clamav';
% }
% if ($rb) {
%   $objects .= ' recycle';
% }
 vfs objects = <% $objects %>
% if ($av) {
 vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
% }
% if ($rb) {
%   foreach my $key (keys %{$recycle_config}) {
%     next unless $key;
 recycle: <% $key %> = <% $recycle_config->{$key} %>
%    }
% }
%
% }

% if ($active_printer) {
%   foreach my $printer (@printers) {
%               next unless (length $printer->{'users'} > 0);
[<% $printer->{'name'} %>]
 path = /var/spool/samba
 read only =    yes
 printable =    yes
 valid users = <% $printer->{'users'} %>
%   }

% }

% foreach my $share (@shares) {
[<% $share->{share} %>]
 comment = <% $share->{comment} %>
 path = <% $share->{path} %>
 browseable = yes
 read only = no
% if ($share->{guest}) {
 guest only = yes
 guest ok = yes
% } else {
 valid users = <% $share->{validUsers} %>
 read list = <% $share->{readOnly} %>
 write list = <% $share->{readWrite} %>
 admin users = <% $share->{administrators} %>
% }
 force create mode = 0660
 force directory mode = 0660
% my $av = ($antivirus xor defined($antivirus_exceptions{'share'}->{$share->{'share'}}));
% my $rb = ($recycle xor defined($recycle_exceptions{'share'}->{$share->{'share'}}));
% my $objects = 'full_audit';
% if ($av) {
%   $objects .= ' vscan-clamav';
% }
% if ($rb) {
%   $objects .= ' recycle';
% }
 vfs objects = <% $objects %>
% if ($av) {
 vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
% }
% if ($rb) {
%   foreach my $key (keys %{$recycle_config}) {
%     next unless $key;
 recycle: <% $key %> = <% $recycle_config->{$key} %>
%    }
% }
%
% }

[<% $prefix %>-internal-backups]
 path = <% $backup_path %>
 browseable = yes
 read only = yes
 valid users = @"Domain Admins"
 admin users = @"Domain Admins"
 force group = ebox
 force user = ebox

[<% $prefix %>-quarantine]
 path = <% $quarantine_path %>
 browseable = yes
 read only = no
 valid users = @"Domain Admins"
 admin users = @"Domain Admins"

[print$]
 comment = "Printer Drivers"
 path = /var/lib/samba/printers
 browseable = yes
 read only = yes
 guest ok = no
 write list = @"Domain Admins"
 valid users = @"Domain Users"