- Timestamp:
- 05/25/18 12:58:38 (7 years ago)
- Branches:
- gcc484, master, perl-5.22
- Children:
- 20eb816
- Parents:
- 34365fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/fileserver/samba_conf/root/etc/postinst.d/post.samba
r34365fb r1568e4c 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.