本机是虚拟机和winxp进行测试,虚拟机地址是192.168.1.156 主机地址是192.168.1.10.两者是可以互通的。首先我们先做linux下的配置一. 首先要确定linux是否安装了smb
[root@localhost zy]#rpm -qa | grep samba
samba-2.2.5-10
samba-swat-2.2.5-10
samba-common-2.2.5-10
samba-client-2.2.5-10呵呵 本机已经安装了我就不多说了,没安装的找光盘安装了二、然后我们判断一下,是否samba服务已经启动,[root@localhost zy]#ps -aux | grep smb
root 1719 0.0 0.3 4916 1820 ? S 08:21 0:00 smbd -D
root 1849 0.0 0.1 4776 628 pts/1 S 08:48 0:00 grep
smb如果没有启动的话 用[root@localhost zy]#/etc/init.d
start关闭是[root@localhost zy]#/etc/init.d
stop重启是[root@localhost zy]#/etc/init.d
start这里只是本次启动,如果需要每次开机都启动的话用setup 或者
ntsysv三.本机是没有装linux下的防火墙的 如果因为防火墙的原因造成不能互相访问[root@localhost zy]#/sbin/iptables -F四,配置smb的主要配置文件smb.conf
[root@localhost zy]# cd /etc/samba
[root@localhost samba]# mv smb.conf
smb.con