Skip to content

Commit

Permalink
samba: disable SMB1
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 4, 2017
1 parent 6a2dd48 commit 4074eda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/nextcloudpi-config.d/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ install()

# the directory needs to be recreated if we are using nc-ramlogs
grep -q mkdir /etc/init.d/smbd || sed -i "/\<start)/amkdir -p /var/log/samba" /etc/init.d/smbd

# disable SMB1 and SMB2
grep -q SMB3 /etc/samba/smb.conf || sed -i '/\[global\]/aprotocol = SMB3' /etc/samba/smb.conf
}

show_info()
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ EOF
# remove default config file in stretch
rm -f /etc/apt/apt.conf.d/20auto-upgrades

# disable SMB1 and SMB2
grep -q SMB3 /etc/samba/smb.conf || sed -i '/\[global\]/aprotocol = SMB3' /etc/samba/smb.conf

# restart PHP to get updates in the ncp-web
# FIXME: php doesn't come up if run from ncp-web
#(
Expand Down

0 comments on commit 4074eda

Please sign in to comment.