linux - 无法从 Windows 10 访问新的 Linux Samba 共享
问题描述
我无法连接到刚刚从 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/shares/
相当残酷,但足以满足我的家庭需求。
推荐阅读
- python - 如何在轴(Altair)上进行清晰的日期显示?
- c - 在随机填充的数组中找到一组最常见的数字
- spring - Spring + Hibernate - 启用二级缓存
- leaflet - 为什么我的传单地图在浏览器中新打开时显示在左上角但在最小化或/和最大化它显示的窗口之后
- java - 如何计算 OOP 中的平均值?
- scatter-plot - 如何在R中的条形图上绘制两个变量之间的最佳分隔线
- swift - 到达 UITableView 的末尾时加载更多
- java - DisplayMetrics widthPixels 返回 0 android java
- regex - 用于查找包含超过 3 个“a”字符的单词的正则表达式
- android - 如何在 Draw 上的两点之间绘制“圆线”并使其可缩放和可滚动?