Ignore:
Timestamp:
05/25/18 12:58:38 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
gcc484, master, perl-5.22
Children:
20eb816
Parents:
34365fb
Message:

samba upgrade 4.7.7. also support SMBv2 and higher (SMBv1 is disabled by default in windows 10). tested with windows 7, 8.1 and 10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/fileserver/samba_conf/root/etc/postinst.d/post.samba

    r34365fb r1568e4c  
    4747
    4848#add new setting (v3.5)
    49 if ! grep "max protocol" /home/system/samba/smb.conf; then
    50         sed -i /home/system/samba/smb.conf -e 's/^.global./[global]\nmax protocol = SMB2/'
    51 fi
     49#if ! grep "max protocol" /home/system/samba/smb.conf; then
     50#       sed -i /home/system/samba/smb.conf -e 's/^.global./[global]\nmax protocol = SMB2/'
     51#fi
    5252
    5353#change setting settings (v4.4.4)
    5454# https://wiki.samba.org/index.php/Required_settings_for_NT4-style_domains
    55 sed -i /home/system/samba/smb.conf -e 's/max protocol = SMB2/max protocol = NT1/'
     55#sed -i /home/system/samba/smb.conf -e 's/max protocol = SMB2/max protocol = NT1/'
    5656
    5757
     
    5959sed -i /home/system/samba/smb.conf -e 's/.*socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192.*//'
    6060
     61#samba 4.7+ chooses good defaults
     62sed -i  /home/system/samba/smb.conf -e 's/.*max protocol.*//g'
     63 
    6164chmod 1777 /home/shares/profiles
    6265chmod 1777 /home/shares/spool
Note: See TracChangeset for help on using the changeset viewer.