mkdir /mnt/sda1/download chmod 777 /mnt/sda1/download apt -y install samba
编辑 /etc/samba/smb.conf,修改为一下内容(注意替换路径及删除注释): PS:配置无需账户、密码。
[global] workgroup = WORKGROUP server string = Samba Server %v netbios name = share security = user map to guest = bad user dns proxy = no [share] comment = share path = /mnt/sda1/download #共享路径 public = yes writable = yes browseable=yes available=yes guest ok=yes
启动、开机自启:
systemctl start smbd systemctl enable smbd
文件管理器访问地址
\\ip 如 \\192.168.1.250
无用户无密码直接访问,建议不在公共场所开启
本文创建于:2023年04月08日,最后更新于:2023年04月08日,已超过 572 天没更新!内容可能已失效,请自行测试,失效请评论区反馈,谢谢啦~