無法在 Samba 伺服器 (CentOS) 上檢視或建立文件

無法在 Samba 伺服器 (CentOS) 上檢視或建立文件

我正在嘗試使用 CentOS 7 和 Samba 設定檔案伺服器。我可以連接到伺服器,並且可以打開在伺服器上設定的共用資料夾。但是,我看不到內容,也無法建立新文件或資料夾。嘗試查看內容只會導致 Windows 10 顯示該資料夾為空(事實並非如此),並且嘗試在共用資料夾之一中建立新檔案或資料夾會導致存取被拒絕的訊息,即使我輸入在擁有該文件夾的帳戶的憑證中。

我嘗試將該帳戶作為有效用戶放入 smb.conf 中,但這不起作用。在 smb.conf 中將 guest ok 切換為 on 也不起作用。

我的設定檔如下:

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.

[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

[programming]
        path = /srv/samba/programming
        read only = no
        guest ok = yes

[video]
        path = /srv/samba/video
        read only = no
        guest ok = yes

我究竟做錯了什麼?

相關內容