Centos7
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
[root@localhost ~]# yum -y install samba samba-client samba-common
[root@localhost ~]# ll /etc/samba/
[root@localhost ~]# ll /var/log/samba
[root@localhost ~]# ll /var/lib/samba/private/
[root@localhost ~]# mkdir /public [root@localhost ~]# ll -d /public/ [root@localhost ~]# chmod 777 /public/
原文:https://www.cnblogs.com/ada54410017/p/11178201.html