命令 :
yum install samba
yum install samba-client
chkconfig smb on
service iptables stop
cd /
mkdir test
vi /etc/samba/smb.conf
chgrp root /test/
chmod 777 /test/ -Rf
smbpasswd -a root
chkconfig iptables off
setenforce 0
service smb restart
配置文件 smb.conf
security = user
[home]
comment =home
browseable =yes
path = /test
public = yes
writable = yes
修改/etc/selinux/config 文件 将SELINUX=enforcing改为SELINUX=disabled 否则重启后仍然需要设置 setenforce 0