yum install samba samba-client samba-common -y
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak gedit /etc/samba/smb.conf
[global] workgroup = WORKGROUP server string= Samba Server %v netbios name=centos security = user map to guest=Bad User dns proxy=no max connections = 32768 [AIlog] comment = AIlog path = /home/AIlog writable = yes browsable=yes available=yes guest ok=yes guest only=yes create mode=0777 directory mode=0777
(3) 配置启动服务
systemctl enable smb.service systemctl enable nmb.service systemctl restart smb.service systemctl restart nmb.service
systemctl disable firewalld.service
gedit /etc/selinux/config 设置:SELINUX=disabled
chmod -R 0777 /home chown -R nobody:nobody /home