Linux
Samba 不要求輸入密碼
我正在嘗試在我的家庭伺服器上設置 Samba,但它不要求輸入密碼。
我做錯什麼了?
[global] workgroup = WORKGROUP security = user map to guest = Bad User wins support = no dns proxy = no [share] path = /media/storage/share guest ok = no valid users = @securedgroup, @usergroup browsable = yes writable = yes [admin] path = /media/storage/admin valid users = @securedgroup guest ok = no browsable = yes writable = yes
猜測一下,主要是因為你有這個:‘map to guest = Bad User’,你還沒有創建任何 Samba 使用者。嘗試閱讀: https ://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
您實際上並不需要該行,因為您在兩個共享上都設置了“map to guest = no”(實際上您並不需要它們,它們是預設設置)。
改變
valid users
使用者列表選項而不是組可能會有所幫助。