日期:2014-05-16  浏览次数:20687 次

redhat 安装配置samba实现win共享linux主机目录
一、安装前准备
1、使用Samba服务器需要防火墙开放以下端口
??? UDP 137 UDP 138 TCP 139 TCP 445
#配置防火墙端口
[root@roothomes ~] vi /etc/sysconfig/iptables? ?
-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
#重启防火墙,使规则生效
[root@roothomes ~] /etc/rc.d/init.d/iptables restart??? ?

2、关闭CentOS6系统的 SE #f5f7f8; font-family: 宋体, Arial;">2、配置samba
[root@roothomes ~] chkconfig smb on  #设置 Samba开机自动启动
[root@roothomes ~] service smb start????? #启动Samba服务?
[root@roothomes ~] /etc/init.d/smb restart? #重启