Photonicat 网络共享/samba4

From Photonicat Wiki
Revision as of 18:05, 7 June 2023 by C2h2 (talk | contribs)
Jump to navigation Jump to search

方法1

目前可以通过修改以下配置文件: (可以通过自带的terminal 界面)

mkdir /share
vim /etc/samba/smb.conf

在文件最后最后添加:

[share]
    comment = Guest access share
    path = /share
    browseable = yes
    read only = no
    guest ok = yes

然后:

/etc/init.d/samba4 restart


  • Notes: 如果提示没有写入权限可能需要chmod 777 挂载目录

方法2

使用Luci 配置,并在terminal输入:

uci set samba4.@samba[0].disable_async_io=1
uci commit

然后尝试重启服务。


R23 kernel 6.1.8版本

Samba4 r23.jpeg
测试ok,参考配置如图。注意:

  • 目录需要 chmod 777
  • 重启服务 /etc/init.d/samba4 restart


R23 kernel 6.1.24版本

命令行输入:

opkg remove ksmbd-server
reboot