安装:
yum install samba
添加smb用户:
smbpasswd -a root
/etc/samba/smb.conf 追加:
[public] path = / valid users = root browseable = yes writable = yes
*****重点*****,设置SELinux 成为permissive模式,临时关闭selinux的否则无法会提示无权限访问文件夹
setenforce 0
启动:
service samb start