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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2004, 06:05 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 19
Rep:
|
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
|
|
|
11-15-2004, 09:11 PM
|
#2
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
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.
|
|
|
11-16-2004, 06:24 AM
|
#3
|
LQ Newbie
Registered: Nov 2004
Posts: 19
Original Poster
Rep:
|
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
|
|
|
11-16-2004, 10:28 AM
|
#4
|
Member
Registered: Jun 2004
Distribution: Slack
Posts: 214
Rep:
|
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.
|
|
|
11-16-2004, 03:41 PM
|
#5
|
Member
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358
Rep:
|
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 03:43 PM.
|
|
|
All times are GMT -5. The time now is 11:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|