安装
yum install samba
编辑配置文件
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak 备份 vi /etc/samba/smb.conf 文件内容: [global] workgroup = LinuxSamba security = user [Home] path = /home browsable = yes writable = yes
smbpasswd -a root
开机启动
systemctl enable smb.service 启动 systemctl start smb.service
设置防火墙
firewall-cmd --permanent --zone=public --add-service=samba firewall-cmd --reload
chcon -t samba_share_t /home原文链接:https://www.f2er.com/centos/375875.html