close

太久沒用這段記憶,搞很久才想起來,趕快紀錄下來,免得下次又卡很久

由於內部網路存取的環境較為單純,所以Samba存取驗證是全開放的狀態,Samba設定檔大概是長這樣:
[global]
        workgroup = SAMBA
        security = user

        map to guest = bad user

        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[share-folder]
        path = /{path}
        guest ok = yes
        read only = no
        public = yes
        browseable = yes

 

突然發現怎麼某些電腦存取不了,搞了很久才想起來Windows 10 / Windows Server 在某個版本以後,因為安全性問題,預設行為是不能存取無密碼的網路資料夾

所以要去改Group Policy Settings 或是 修改登錄檔

Group Policy settings:

  1. Open the Local Group Policy Editor (gpedit.msc) on your Windows device.
  2. In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Workstation.
  3. For the setting, right-click Enable insecure guest logons and select Edit.
  4. Select Enabled > OK.

Ref: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/guest-access-in-smb2-is-disabled-by-default 

arrow
arrow
    創作者介紹
    創作者 吾給力 的頭像
    吾給力

    吾給力的部落格

    吾給力 發表在 痞客邦 留言(0) 人氣()