1) 检查samba配置文件 vim /etc/samba/smb.conf
[mnt] comment = samba share dir path = /mnt/ public = yes writable = yes /*对共享目录有写入属性*/ browseable = yes
2) 设置 共享的路径在linux内有写入权限
chmod 666 /mnt/
3) 关闭selinux 编辑/etc/selinux/config
setenforce 0 #临时关闭selinux 将 SELINUX=enforcing 改成 SELINUX=disabled #永久关闭,重启生效
