|
虚拟机,redhat企业版。官网最新samba源码包。
-------------------------
cd samba
cd souce3
./autogen.sh
./configure
make
make install
--------------------------
[root@lredhat ~]# ps -aux | grep smb
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 3000 0.0 0.2 5000 684 pts/0 R+ 02:23 0:00 grep smb
[root@lredhat ~]# ps -aux | grep nmb
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 3002 0.0 0.2 4996 680 pts/0 R+ 02:23 0:00 grep nmb
-------------------------------------
echo "/usr/local/samba/sbin/smbd start" >>/etc/rc.local
echo "/usr/local/samba/sbin/nmbd start " >>/etc/rc.local
----------------------------
service iptables stop
-------------------------------
[root@lredhat ~]# more /etc/samba/smb.conf
[global]
netbios name = linux
workgroup = workgroup
server string = Samba Server
security = share
[homes]
comment = Home Directories
public = yes
browseable = yes
writable = yes
[public]
comment = Public Stuff
path = /tmp
public = yes
browseable = yes
-------------------------------------------
[root@lredhat ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
netbios name = LINUX
server string = Samba Server
security = SHARE
[homes]
comment = Home Directories
read only = No
guest ok = Yes
[public]
comment = Public Stuff
path = /tmp
guest ok = Yes
adduser test
passwd test
smbpasswd -a test
[root@lredhat ~]# smbclient -L 127.0.0.1
Error connecting to 127.0.0.1 (æ‹’ç»
Connection to 127.0.0.1 failed
XP真机和linux服务器可以互相ping通。虚拟机也曾安装过一个XP,和本机可以相互访问。
现在问题:本机无法访问linux服务器,提示找不到网络路径。 |
|