samba/smb 可读不可写的问题
解:分享名不能与文件夹名一致(大小写不敏感),如
分享名为Music
,在samba网络上为\\localhost\Music
,在linux本机上是/home/music
Can read but cannot write to Samba share
Viewed 84k times
QuestionAnswer
赞成票 7 最佳答案
edited Apr 13, 2017 at 12:14
After hours of searching, I discovered that the share name and the share directory cannot be the same (and it's not case-sensitive, either). See this post on serverfault.
So, if I change my share name in smb.conf from:
[Music]
to
[Tunes]
I can both read and write to the share. No other changes to my smb.conf were necessary, and no need to chmod 0777.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步