cat /var/log/samba/log.smbd查看日志发现错误全是:
[2023/06/03 07:40:40.586777, 0] ../lib/param/loadparm.c:1610(set_variable_helper)
set_variable_helper(yes ): value is not boolean!
[2023/06/03 07:41:44.631899, 0] ../lib/param/loadparm.c:1610(set_variable_helper)
set_variable_helper(yes ): value is not boolean!
最后发现是我的配置中
available = yes
browseable = yes
writable = yes
yes后面还有很多中文字符,但是看起来像是空格,去掉yes后面奇怪的字符就能启动了
成功浪费半个小时排查这个莫名其妙的问题