]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
samba: Remove any options left to default value in global section
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Oct 2020 20:34:39 +0000 (21:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Oct 2020 16:06:16 +0000 (17:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/samba/default.global
html/cgi-bin/samba.cgi

index 30587e47a51fb6b1d934cb90f08443262e7f8891..05d09a9a22bad32d4d79277999421e97f34202ae 100644 (file)
@@ -6,14 +6,9 @@ server string = Samba
 workgroup = homeip.net
 passdb backend = smbpasswd
 
-keep alive = 30
 os level = 33
-fstype = NTFS
 
-kernel oplocks = false
 map to guest = bad user
-smb ports = 445 139
-unix charset = CP850
 
 security = user
 guest account = samba
@@ -21,16 +16,6 @@ unix password sync = false
 
 bind interfaces only = true
 interfaces =  green0 127.0.0.1
-socket options = TCP_NODELAY SO_KEEPALIVE
 
-username level = 1
-wins support = true
-
-log file       = /var/log/samba/samba-log.%m
-lock directory = /var/lock/samba
-pid directory = /var/run/
+log file  = /var/log/samba/samba-log.%m
 log level = 3 passdb:5 auth:5 winbind:2
-
-preferred master = false
-domain master = false
-local master = false
index fd43afd17dcabd06d9c7b792a8963592643fe5bb..07665e8f1e4215123ffaa07b325905d08d81ec14 100644 (file)
@@ -283,13 +283,9 @@ if ($sambasettings{'SMB2'} eq 'on'){
 }
 
 print FILE <<END
-keep alive = 30
 os level = $sambasettings{'OSLEVEL'}
-fstype = NTFS
 
-kernel oplocks = false
 map to guest = $sambasettings{'MAPTOGUEST'}
-smb ports = 445 139
 dos charset = $sambasettings{'DOSCHARSET'}
 unix charset = $sambasettings{'UNIXCHARSET'}
 
@@ -302,7 +298,6 @@ interfaces = $sambasettings{'INTERFACES'}
 remote announce = $sambasettings{'REMOTEANNOUNCE'}
 remote browse sync = $sambasettings{'REMOTESYNC'}
 
-username level = 1
 wins support = $sambasettings{'WINSSUPPORT'}
 wins server = $sambasettings{'WINSSRV'}
 
@@ -311,8 +306,7 @@ winbind uid = 10000-20000
 winbind gid = 10000-20000
 winbind use default domain = yes
 
-log file       = /var/log/samba/samba-log.%m
-pid directory  = /var/run/
+log file  = /var/log/samba/samba-log.%m
 log level = $sambasettings{'LOGLEVEL'}
 
 preferred master = $sambasettings{'PREFERREDMASTER'}