vi /etc/samba/smb.conf (修改配置文件)
yjb888 修改配置文件
vi /etc/samba/smb.conf
找到[downloads],改成这样
[downloads]
path = /mnt/sda1/downloads
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
browseable = yes
按键盘esc保存退出,输入 :wq 回车
systemctl restart smbd (重启 Samba 服务)
chmod 777 -R /mnt/sda1/downloads
给downloads权限