#samba安装 yum -y install samba #samba配置 vim /etc/samba/smb.conf #增加配置内容 [test] comment = samba test path=/media public=No read only=yes valid users = samba,test write list=samba directory mask=0755 create mask =0644 #重启服务 systemctl resta