1.备份samba配置文件
#cd /etc/samba
#cp smb.conf smb.conf.bak
#vi smb.conf
2.在smb.conf中输入如下信息
[public]
comment = common dir
path = /share
public = yes
writable = yes
printable = no
3.重启samba服务
#mkdir /share
#cd /etc/rc.d/init.d
#./smb restart
4.关闭selinux保证远程可写
#vi /etc/selinux/config
SELINUX=disabled