1.安装Samba
sudo apt install samba
2.配置Samba
sudo vim /etc/samba/smb.conf
3.Global-Networking配置
force user = ren
force group = ren
create mask = 0664
directory mask = 0775
4.Share配置
[share]
path = /home/ren/share //共享文件夹路径
available = yes
browseable = yes
public = yes
writable = yes
5.重启Samba
sudo /etc/init.d/smbd restart
6.配置挂载点