LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2004, 07:05 PM   #1
VorlonShadow
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Rep: Reputation: 0
Question Samba Troubles


I've been trying to get Samba running all day with no luck. I can't see the server from my Windows pc, but I can't even see it from my Linux box either.

When I run the command smbclient //localhost/backup -U jesse, I get the error, "timeout connecting to 127.0.0.1:445, timeout connecting to 127.0.0.1:139". I have made sure that smb is started, and smbd and nmbd as well. I can smbclient to my Windows pc, and that seems to be working just fine.

There is nothing in the log files that would indicate the problem, just the copyright notice at the start of the file.. Any ideas what I can look at?

Jesse
 
Old 11-15-2004, 10:11 PM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
It is because you have misconfigured samba. The IP address 127.0.0.1 is the loopback device and is not used for network connect.

Try giving your Network Interface Device (Network Card) an IP address like 196.168.1.1 or something similar and then reconfigure Samba.
 
Old 11-16-2004, 07:24 AM   #3
VorlonShadow
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Original Poster
Rep: Reputation: 0
No, I haven't given my NIC an ip address of 127.0.0.1. I've actually got an address of 192.168.1.102. I'm using localhost (127.0.0.1) to test with. It doesn't matter if I try to connect to samba using risa (my machine's name), localhost (127.0.0.1), or 192.168.1.102, the results are the same, I won't let me in. If I do a smbclient //risa/backup, or smbclient //192.168.1.102/backup, then I get an "error connecting to 192.168.1.102 (Invalid Argument)". That is a different error message than the localhost one. Perhaps I won't be able to use locahost for this. At any rate, I still can't connect.

Jesse
 
Old 11-16-2004, 11:28 AM   #4
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
I was bending my head for ages on Samba. Have you lowered the firewall, as mine was blocking everything even smbclient attempts.

service iptables stop

usually puts it down.
 
Old 11-16-2004, 04:41 PM   #5
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Jesse, you are trying to mount a XP drive right?

first lets assume that you have two computers, one name harris and the other harry
Harris has an ip of 192.168.1.102
Harry has an ip of 192.168.1.103

Harris is an Linux box and Harry is an windows box.

In harris host file /etc/hosts
127.0.0.1 localhost
192.168.1.103 harry

Then go to cl and ping harry and you should get replys. Once this is done then I will help you with the exact command of mount -t smbfs -o username=bob,password=bob //harry/backup /mnt/backup

This should work fine. Let me know
Also you could post your smb.conf file for me to look at it. or you could testparm it.

Last edited by phatboyz; 11-16-2004 at 04:43 PM.
 
  


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
Troubles with samba butler Linux - Software 5 12-01-2004 12:32 AM
samba DC troubles alec77 Linux - Networking 2 07-22-2004 07:51 AM
Samba 3.0.2a troubles digitalgravy Linux - Networking 3 05-12-2004 06:27 PM
Samba troubles... Grim Reaper Linux - Software 13 04-01-2004 08:11 PM
samba client troubles MThunter Linux - Networking 8 07-07-2003 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration