参考:https://www.cnblogs.com/muscleape/p/6385583.html
1、安装
# yum install samba samba-client -y
2、设置开机启动:
# systemctl enable smb.service
3、查看是否设置成功
# systemctl status smb.service
4、启动samba服务
# systemctl start smb.service
5、配置文件
# cd /etc/samba
# cp smb.conf smb.conf.bak
[root@localhost samba]# pwd
/etc/samba
[root@localhost samba]# ls
lmhosts smb.conf smb.conf.bak smb.conf.example
[root@localhost samba]#
[root@localhost samba]# cat smb.conf
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = ra