我正在尝试使用 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
我究竟做错了什么?