LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-14-2004, 11:44 PM   #1
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Rep: Reputation: 15
Samba isn't working, need important files


I'm having a serious problem with samba. For some reason, it no longer seems to want to work with my windows xp machine.

I have a very basic samba configuration file that was working for a while. I have also checked teh correctness of the /etc/smb.conf file with the testparm command.

Also, I can no longer "ftp localhost" after i set up my localhost, but I am not sure that this is related. I have turned all firewalls off.

Samba also seems to start up fine as does nmb.

I'm wondering where i can go from here and what i can try.
 
Old 06-15-2004, 01:27 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
If you are unable to connect to localhost, it sounds like there is a network problem, not a Samba problem.

Can you ping the Samba server from Windows? What is the output of "ifconfig"?
 
Old 06-15-2004, 01:43 AM   #3
unforgivn
Member
 
Registered: Jul 2003
Location: south africa
Distribution: RH 9 hopefully fedora core 2 soon :P
Posts: 34

Rep: Reputation: 15
after you setup your localhost?
make sure that the word localhost is in your /etc/hosts file?
make sure that your ftp daemon is running ? chkconfig --list | grep ftp
 
Old 06-15-2004, 02:22 AM   #4
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks for the quick replies.

I was able to fix the localhost and the ftp problem, and I am writing from the machine that is having problems with samba.

I fixed the routing tables, upgraded ftp, and was able to set up an ftp server on this PC so I was able to get a few of the files I needed thankfully (didn't get them all because ftp is so slow).

Anyway, Samba is still not working. I have made sure iptables is completely disabled, and I given the fact that ftp worked I don't think it is a problem with the routing tables.


Yes, I can ping this machine fron windows (when it is set up on the lan), and the output from ifconfig is as follows:

[root@icarus pub]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:29:3E:EB:C4
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256013 errors:0 dropped:0 overruns:0 frame:0
TX packets:507110 errors:0 dropped:0 overruns:0 carrier:0
collisions:249376 txqueuelen:1000
RX bytes:16982898 (16.1 Mb) TX bytes:755936569 (720.9 Mb)
Interrupt:10 Base address:0x1080

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:595 errors:0 dropped:0 overruns:0 frame:0
TX packets:595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1327161 (1.2 Mb) TX bytes:1327161 (1.2 Mb)

For future reference, perhaps:
[root@icarus pub]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
67.41.239.4 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 67.41.239.4 0.0.0.0 UG 0 0 0 ppp0

(PPPoE is, of course, not on when I'm playing with samba.)

I know the samba file is fine because it is exactly the same as it was when it was working.

Do you think upgrading samba and re-configuring the /etc/samba/smb.conf file would help?
 
Old 06-15-2004, 03:54 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
If Samba was working, and then stopped working, something has changed on one of the machines in the meantime.

What might that be? Did you remove users from the XP users list (so that XP no longer knows what user is connecting, thus refuses the connection)? Did you change the shares on your machine so that Samba can't find the folder you're looking for? Did you reboot and forget to start the samba daemons (smbd and nmbd) after doing so (and they don't start at boot for some reason)? Did you install/upgrade to Gnome 2.6 and you're trying to use the Nautilus SMB browser (which is apparently broken)?

When you try to connect to the XP box via Samba, how are you doing so? How far does the process get before you are rejected? What is the error that you receive? Saying "Samba doesn't work" is a bit too general to work with.
 
Old 06-15-2004, 04:37 PM   #6
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
motub wrote:If Samba was working, and then stopped working, something has changed on one of the machines in the meantime.
It seems that many things in linux just stop working all the time. However, I did upgrade my kernel, but I didn't even include iptables or ipchains so I don't think that that is the problem.

Quote:
motub wrote:What might that be? Did you remove users from the XP users list (so that XP no longer knows what user is connecting, thus refuses the connection)?
It is XP that is trying to connect to Samba, not the other way around; this is how it was previously working. I don't know how to 'mount' an XP shared partition on linux.


Quote:
motub wrote: Did you change the shares on your machine so that Samba can't find the folder you're looking for?
It's XP that tries to connect to samba, and when it did connect it connected to my user home directory. Nothing has really changed on that Linux box I think other than I upgraded my kernel to a newer version of the 2.4 kernel than what my Redhat 7.3 Linux distribution originally came with.

Quote:
motub wrote:Did you reboot and forget to start the samba daemons (smbd and nmbd) after doing so (and they don't start at boot for some reason)? Did you install/upgrade to Gnome 2.6 and you're trying to use the Nautilus SMB browser (which is apparently broken)?
I use KDE. And those daemons are definitely started. When I type /etc/init.d/smb start, both of them seem to start up.

Quote:
motub wrote:When you try to connect to the XP box via Samba, how are you doing so?
Through a hub. I have two NICs in this machine (the Windows computer) and one is plugged into a hub with the IP address of 192.168.0.1, the Linux computer is at 192.168.0.2. I seem to be able to ping the Linux computer from here, and I got ftp to work, but I still have had no luck with Samba.

Right now, I'm trying to connect from windows 98 SE (which is only on this hard drive on the first partition) and I get the same error message as I do in XP


Quote:
motub wrote:How far does the process get before you are rejected? What is the error that you receive?
I try and connect and it dies. The error message is as follows:

Code:
Windows cannot find '\\192.168.0.2'. Check the spelling and try again, or try searching 
for the item by clicking the Start button and then clicking Search.
Quote:
motub wrote:Saying "Samba doesn't work" is a bit too general to work with.
True, but this, as with most linux programs, who knows what the problem could be. It be anything from how linux is handling the NIC to the samba software itself to the "config" file.

Last edited by kidicarus; 06-15-2004 at 04:39 PM.
 
Old 06-15-2004, 06:04 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
What does the Samba log say when you get the error on the Windows machine?
 
Old 06-16-2004, 04:39 AM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Originally posted by kidicarus
It seems that many things in linux just stop working all the time. However, I did upgrade my kernel, but I didn't even include iptables or ipchains so I don't think that that is the problem.
Did you upgrade to a 2.6 series kernel, or to a version of 2.4 beyond 2.4.24 (2.4.25 and 2.4.26 contain backports of 2.6 series patches)? Did you include Samba support in the Filesystems section? Things do not "just stop working" under any computer system; you do something that causes it to stop. Computers are not sentient, do not have self-will, and do not do things on their own, just to spite you .


Quote:
Originally posted by kidicarus
I try and connect and it dies. The error message is as follows:

Code:
Windows cannot find '\\192.168.0.2'. Check the spelling and try again, or try searching 
for the item by clicking the Start button and then clicking Search.
Have you tried connecting by hostname? Are you using Network Places, or the command line? You can ping the IP from Windows, but you can't connect to it from Windows. Sounds like an authentication error to me. Is the Windows user trying to connect to Samba a user on the Linux system, and added and enabled in smbpasswd?

You didn't include ipchains or iptables in the new kernel, but what about Windows XP's firewall? Is it now blocking port 139 (the default Samba port)? FTP uses a different port by default, so that could explain why the one works and the other doesn't.

Quote:
Originally posted by kidicarus
True, but this, as with most linux programs, who knows what the problem could be. It be anything from how linux is handling the NIC to the samba software itself to the "config" file.
Oh please. Stop being so negative. In the very sentence where you say that such errors are incomprehensible, you give three specific locations where the error could be, so it's obviously not as incomprehensible as you're claiming.

If you start from the premise, "What has changed"? it's not incomprehensible at all. You changed the kernel. Not the config file, which was working, so we can (temporarily) eliminate that (we'll come back to it at need). You changed the kernel. So we can safely speculate that one of the Samba issues connected to the kernel has been changed in such a way that Samba no longer works (or else you changed something on the Windows machines, but that's another issue). The most basic Samba issues connected with the kernel are:

1) network card support (which seems unlikely to be the problem, since you can use FTP and ping-- so we've already narrowed the problem down to SAMBA specifically)

2) Samba support in the kernel (don't remember if this is also in 2.4 series kernels, but it might well be, or have been added between the kernel you started with and the kernel you upgraded to).

On the Windows side, it's quite possible that you've done a Windows Update that may have changed the firewall rules (blocking port 139, the default Samba port), or changed the security policy so that your previous configuration is no longer valid (by removing or restricting "guest" access, for example, or by reverting your Workgroup Name to the default-- which seems to happen a lot when using ICS, if you are using that).

I would suggest that you visually check the smb.conf file and confirm that it has not changed and that your /home folder is still listed as "writeable=yes", and that any shares are still listed correctly.

I would also suggest that you (re-)add and enable all relevant users in smbpasswd, just to be certain that they are (if they are already listed, the attempt to add them will fail anyway, so it can't hurt) .

I would also request knowing what version of Samba is in question; it seems unlikely that the version which came with RedHat 7.3 (why do your profile details say "Debian Sid"?) would work properly with a current kernel, and/or the required system upgrades needed to run a current kernel.

So yes, an upgrade of Samba might well be in order, and in fact I would try that first if your version is very old.

Hope this helps.
 
  


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
most important gonfig files? Trio3b Linux - Newbie 3 09-29-2005 09:24 PM
The most important skills working in IT industries? koyi General 9 08-06-2004 12:54 AM
Most important cfg files krajzega Slackware 3 02-03-2004 08:38 AM
Important files after compiling the kernel nmoog Linux - Newbie 6 10-19-2003 06:50 AM
Important Linux Files. JafferAB Linux - Newbie 3 09-24-2002 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:41 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