1.安装
yum install samba samba-client
sudo smbpasswd -a username
sudo vim /etc/samba/smb.conf
[username]
path=/home/username
browseable = yes
writable = yes
valid users = username
4.重新启动samba服务
sudo systemctl restart smb.service
5.检查,关闭防火墙
getenforce setenforce 0
6.windows端访问
\\ip\username
原文链接:https://www.f2er.com/centos/377688.html