安装samba服务
yum -y install samba
关闭防火墙
vim /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
关闭防火墙
[root@bak1 ~]# systemctl disable firewalld
新建samba用户
创建共享目录
[root@bak1 home]# mkdir -p /home/share
创建共享用户组
[root@bak1 home]# groupadd share
创建共享用户
[root&#