参考链接
https://blog.csdn.net/Jack_Zhao_/article/details/88657682
以上文档实战验证。
部署注意事项
1)关闭 SElinux ####遇到过没有关闭selinux SMB服务启动后文件丢失
2)关闭linux firewall 不关闭会导致打不开
[root@localhost ~]# cat /etc/samba/smb.conf
[global]
workgroup = SAMBA
security = user
map to guest = Bad User
log file = /var/log/samba/log.%m
[public]
comment = Public
path = /opt/shares
public = yes
read only = No
[root@localhost ~]# cd /opt/
[root@localhost opt]# ll
总用量 0
drwxr-xr-x 2 nobody nobody 44 1月 6 16:17 shares
[root@localhost opt]#