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/
This commit is contained in:
parent
14c3a1856f
commit
8a92b0d142
@ -27,6 +27,7 @@ RUN export DEBIAN_FRONTEND='noninteractive' && \
|
|||||||
echo ' vfs objects = recycle' >>/etc/samba/smb.conf && \
|
echo ' vfs objects = recycle' >>/etc/samba/smb.conf && \
|
||||||
echo ' recycle:keeptree = yes' >>/etc/samba/smb.conf && \
|
echo ' recycle:keeptree = yes' >>/etc/samba/smb.conf && \
|
||||||
echo ' recycle:versions = 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 && \
|
echo '' >>/etc/samba/smb.conf && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/*
|
||||||
@ -36,4 +37,4 @@ VOLUME ["/etc/samba"]
|
|||||||
|
|
||||||
EXPOSE 137/udp 138/udp 139 445
|
EXPOSE 137/udp 138/udp 139 445
|
||||||
|
|
||||||
ENTRYPOINT ["samba.sh"]
|
ENTRYPOINT ["samba.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user