Photonicat 网络共享/samba4: Difference between revisions

From Photonicat Wiki
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:
  /etc/init.d/samba4 restart
  /etc/init.d/samba4 restart


*Notes: 如果提示没有写入权限可能需要<code>chmod 777 挂载目录</code>


==方法2==
==方法2==

Revision as of 15:30, 11 November 2022

方法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

然后尝试重启服务。