我无法连接到刚刚从 Windows 10 创建的 Linux Samba 共享。我在 Windows 上收到“您无权访问...”错误消息。任何帮助将不胜感激。看来我已经很接近了!仅供参考,我可以 ping、ssh 进入 linux 盒子等。网络连接似乎不是问题。
这是 smb.conf...
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
log level = 2
printcap name = cups
load printers = yes
cups options = raw
hosts allow = 192.168.1.220 192.158.1.230 192.168.1.240 192.168.1.0/24
[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
[fshare]
browseable = yes
path = /home/fshare
public = yes
writeable = yes
read only = no
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
valid users = sambauser
就我而言,我必须 chmod 共享文件夹。作为根用户:
chmod -R 777 /home/共享/
相当残酷,但足以满足我的家庭需求。