From 8a92b0d14239a109fae534ee9f938cff085ca5ae Mon Sep 17 00:00:00 2001 From: Andrew Ferrier Date: Fri, 7 Jul 2017 16:23:13 +0100 Subject: [PATCH] Force minimum of SMB2 Force a minimum of SMB2 by default as recommended here: https://blogs.technet.microsoft.com/filecab/2016/09/16/stop-using-smb1/ --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 42683b0..1c4b807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN export DEBIAN_FRONTEND='noninteractive' && \ echo ' vfs objects = recycle' >>/etc/samba/smb.conf && \ echo ' recycle:keeptree = yes' >>/etc/samba/smb.conf && \ echo ' recycle:versions = yes' >>/etc/samba/smb.conf && \ + echo ' min protocol = SMB2' >>/etc/samba/smb.conf && \ echo '' >>/etc/samba/smb.conf && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* @@ -36,4 +37,4 @@ VOLUME ["/etc/samba"] EXPOSE 137/udp 138/udp 139 445 -ENTRYPOINT ["samba.sh"] \ No newline at end of file +ENTRYPOINT ["samba.sh"]