- Timestamp:
- 08/03/18 13:17:46 (7 years ago)
- Branches:
- master, perl-5.22
- Children:
- a384a97
- Parents:
- 981dbbc (diff), 1163be4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/fileserver/samba_conf/root/etc/postinst.d/post.samba
r981dbbc rce9f9b3 47 47 48 48 #add new setting (v3.5) 49 if ! grep "max protocol" /home/system/samba/smb.conf; then50 sed -i /home/system/samba/smb.conf -e 's/^.global./[global]\nmax protocol = SMB2/'51 fi49 #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 52 52 53 53 #change setting settings (v4.4.4) 54 54 # 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/' 56 56 57 57 … … 59 59 sed -i /home/system/samba/smb.conf -e 's/.*socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192.*//' 60 60 61 #samba 4.7+ chooses good defaults 62 sed -i /home/system/samba/smb.conf -e 's/.*max protocol.*//g' 63 61 64 chmod 1777 /home/shares/profiles 62 65 chmod 1777 /home/shares/spool
Note: See TracChangeset
for help on using the changeset viewer.