CentOS 7.6 SAMBA服务安装与测试
#安装SAMBA服务和SAMBA客户端
yum install samba samba-client -y
#关闭防火墙和SELINUX
systemctl stop firewalld
setenforence 0
#永久关闭SELINUX
vi /etc/selinux/config
#把enforcing改为disabled
#修改smb.conf
vi /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
security = user
passdb backend = tdbsam
# printing = cups
# printcap name = cups
# load printers = yes
# cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
#不需要打印机共享,注释掉
#[printers]
# comment = All Printers
# path = /var/tmp