linux搭建smba协议无法直接执行exe解决方案
有时候我会使用aria2离线下载一些安装包到内网nas上,内网nas又是通过smb来共享文件的,因为涉及到安装包,直接双击无法执行!必须要拷贝出来!我觉得挺SB的,于是百度了一下,解决方式如下:
解决方案
- 编辑
/etc/samba/smb.conf
文件、 - 添加
acl allow execute always = True
- 保存,重启服务
- 完事
参考配置
仅供参考,无代表性
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
map to guest = Bad User
acl allow execute always = True
[共享存储]
path = /media/sdb1
public = true
browseable = yes
writable = yes
create mode = 0644
force create mode = 0644
directory mode = 0755
force directory mode = 0755