LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-03-2006, 12:52 AM   #1
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Rep: Reputation: 15
CentOS+WinXP and Samba: connection failed


Hi,
I have two PC's directly connected to each other with a crossover cable, one is a WinXP Home and the other is CentOS 4.2. They are into a simple file sharing network and their IP addresses are static, manually configured (have had problems with DHCP on both machines).
Although there are no warnings regarding connection on both machines, when I try to use samba on CentOS machine to connect to the win machine I get a response that the connection failed. Likewise, on the win machine in the My Network Places I don't see shares from CentOS machines.
What is to be done to make this system work?
 
Old 08-03-2006, 08:33 AM   #2
friskydrifter
Member
 
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

Rep: Reputation: 15
Um - not much info to go on. You could tell us how you are trying to connect? like have you edited smb.conf? What commands have you tried. What did you do when it said connection failed. Can you ping the other machine? Are you running any firewalls? Is any of the machines running a DHCP server so you get an DHCP assigned address. And anything else you have tried?

This might help you though

How to connect to a XP share from linux if the share is called 'dashare' and your username is 'whatthe' your password is blank, the workgroup is 'WRKGRP' and the XP ip is 192.168.0.1

1. make a directory to mount the windows share.
mkdir /mnt/dashare

2. The command to mount the windows share to /mnt/dashare:
mount -t smbfs -o username=whatthe,password=,workgroup=WRKGRP //192.168.0.1/dashare /mnt/dashare

3. View the share
cd /mnt/dashare
ls -las


To share a folder to windows read /etc/samba/smb.conf
and then ask if you get stuck on any of it.

Further:-
are you trying to connect by hostname or ip address only, If you cant ping by hostmane edit your /etc/hosts to reflect that.
If Xp is called PoopOS then in the /etc/hosts file have a line:

192.168.0.1 [TAB] PoopOS

the [TAB] indicates a Tab, don't type [TAB] into the line ;-)

Last edited by friskydrifter; 08-03-2006 at 08:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA connection failed masterlodi Linux - Networking 2 03-13-2005 08:24 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover Suse/Novell 8 02-22-2005 08:57 AM
iptables blocking samba connection to WinXP QClown Linux - Networking 15 01-30-2005 05:01 PM
Connection to LOCALHOST failed when I try to browse the LAN in Samba jeffcheng Linux - Networking 0 09-21-2004 07:55 AM
Trouble getting a connection with Samba and WinXP Zombfyed Linux - Networking 2 12-16-2002 08:22 PM


All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration