我按照以下设置在 Samba 中创建了一个文件夹共享:
[Loja4]
path = mypath
read only = no
guest ok = yes
guest only = yes
共享文件夹在我尝试访问的机器上可见,但由于权限错误,我无法访问它们。
smb.conf 的全局设置尚未改变,并且该文件夹属于用户 nobody(具有写入和读取权限)。
编辑:
文件夹中的日志/var/logs/samba
返回以下信息:
[2020/04/19 13:57:19.872551, 0] ../source3/smbd/service.c:774(make_connection_snum)
canonicalize_connect_path failed for service Loja4, path /media/svr-backup/eaa0e745-1ac9-4ba7-9c1d-937146eaebe7/Loja4
答案1
尝试添加:
writable = yes
force user = nobody
答案2
我将其替换"force user = nobody"
为"force user = svr-backup"
,并且效果很好。