雖然 SMB 1.0 因為安全問題,幾乎快被世界遺棄,但是偶爾 Windows 11 還是會遇到老服務在跑 SMB 1.0 。
Windows 11 開啟 SMB 1.0 的步驟如下圖:
修改登陸檔
regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\
AllowInsecureGuestAuth = 1
登錄檔修改一個值
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] => 修改或新增“AllowInsecureGuestAuth” = 1 (DWORD)
# mount.cifs //remote.ip/path /mnt/local/path -o vers=1.0
/var/lib/vz/dump
先按win+r => 輸入regedit.msc =>找到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] => 修改或新增“AllowInsecureGuestAuth” = 1 (DWORD)
[global]
min protocol = SMB2
max protocol = SMB2
client min protocol = SMB2
client max protocol = SMB2