1 安装Samba服务
sudo apt-get install samba samba-common
2 配置samba服务
vi /etc/samba/smb.conf
security =user
[myshare]
comment = my share directory
path = /home/skyworth/work
browseable = yes
writable =yes
3 建立用户(home下存在的用户,不然window登录不上)
sudo smbpasswd -a mstart
4 重启Samba服务
sudo service smbd restart
5 查看ip并登录
ifconfig
6window查看
\ip
参考
https://blog.csdn.net/weixin_52668597/article/details/130285793