/usr/share/zentyal/stubs/samba/smb.conf.mas is in zentyal-samba 2.3.12+quantal1ubuntu1.
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 | <%args>
$fs => 'ntvfs'
$workgroup
$netbiosName
$description
$ifaces
$mode
$realm
@shares
$roamingProfiles => 0
$profilesPath
$printers => []
$antivirus => 0
$antivirus_exceptions => {}
$recycle => 0
$recycle_exceptions => {}
$recycle_config => {}
$prefix => 'Zentyal'
$backup_path => '/tmp'
$quarantine_path => '/tmp'
</%args>
<%init>
use EBox::Gettext;
use EBox::Samba;
</%init>
[global]
netbios name = <% $netbiosName %>
workgroup = <% $workgroup %>
server string = <% $description %>
wins support = yes
dns proxy = yes
name resolve order = wins bcast host
interfaces = <% $ifaces %>
bind interfaces only = yes
server role = <% $mode %>
realm = <% $realm %>
log level = 3
log file = /var/log/samba/samba.log
passdb backend = samba4
idmap_ldb:use rfc2307 = yes
% if ($fs eq 's3fs') {
rpc_daemon:spoolssd = embedded
% } else {
dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver, winreg, srvsvc
server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, smb
% }
ldap privileged socket mode = 0770
% if ($mode eq 'dc') {
% if ($roamingProfiles) {
[profiles]
path = <% $profilesPath %>
browseable = no
read only = no
% }
[netlogon]
path = /var/lib/samba/sysvol/<% $realm %>/scripts
browseable = no
read only = yes
[sysvol]
path = /var/lib/samba/sysvol
read only = no
% }
[homes]
comment = <% __('Home Directories') %>
path = /home/%S
read only = no
browseable = no
create mask = 0611
directory mask = 0711
% my $av = ($antivirus xor defined($antivirus_exceptions->{'users'}));
% my $rb = ($recycle xor defined($recycle_exceptions->{'users'}));
% my $objects = 'acl_xattr full_audit';
% if ($av) {
% $objects .= ' zavs';
% }
% if ($rb) {
% $objects .= ' recycle';
% }
vfs objects = <% $objects %>
full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
% if ($rb) {
% foreach my $key (keys %{$recycle_config}) {
% next unless $key;
recycle: <% $key %> = <% $recycle_config->{$key} %>
% }
% }
% foreach my $share (@shares) {
# Shares
[<% $share->{share} %>]
comment = <% $share->{comment} %>
path = <% $share->{path} %>
browseable = Yes
read only = No
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 = 'acl_xattr full_audit';
% if ($av) {
% $objects .= ' zavs';
% }
% if ($rb) {
% $objects .= ' recycle';
% }
vfs objects = <% $objects %>
full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
% if ($rb) {
% foreach my $key (keys %{$recycle_config}) {
% next unless $key;
recycle: <% $key %> = <% $recycle_config->{$key} %>
% }
% }
% }
% foreach my $printer (@{$printers}) {
[<% $printer->{name} %>]
comment = "<% $printer->{description} %>"
path = /var/spool/samba
printable = yes
read only = yes
% if ($printer->{guest}) {
guest ok = yes
% } else {
% my $acl = join (", ", @{$printer->{acl}});
valid users = <% $acl %>
% }
% }
[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"
#[<% $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"
|