LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2005, 05:58 PM   #1
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Rep: Reputation: 0
cant connect to xp machine smbclient not working


I have an issue that I have wrapped my head around for a few days now.

Previously I was trying to connect to a mac machine on my network, and now I've somehow either screwed up samba, or messed up named and or network settings.

It's weird, cause I can connect into the machine from xp, but can't connect from fc4 to the xp machine.

I can see it in findsmb, but when I try to connect using smbclient it tries to goto an internet address instead.

I have not changed the smb.conf file, and I am on the internet just fine and dandy.

I made sure that the firewall is open , and like I said, I can connect into the linux machine without any problems.


edited: sorry, put in wrong section...

Last edited by circuithead; 12-31-2005 at 06:27 PM.
 
Old 01-02-2006, 11:33 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Code:
There are 3 basic steps to make a share mount from windows to linux.

1.  open a konsole

2.  mkdir (path to directory you want to share) example: /home/user/share

3.  smbmount //IP/windows_share /home/user/share

password:
what happens when you do it that way instead of via the GUI?
 
Old 01-02-2006, 12:03 PM   #3
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
it's not windows to linux.

it's linux to windows that's the problem.
 
Old 01-02-2006, 02:59 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,136
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
That's how you mount a smb share.
Something like
Code:
mount -t smbfs //machinename/sharename /home/<usr>/mountingpoint
Example
Code:
mount -t smbfs //Dell123/shareddocs /home/sam/shared
Then you can browse the shared folder in a file mgr like Konqueror, Rox, Nautilus etc.

Don't forget to unmount it when you are done.
Code:
umount /home/sam/shared

Last edited by teckk; 01-02-2006 at 03:01 PM.
 
Old 01-03-2006, 12:03 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
oops, sorry had an error up there. it reads from windows to linux, but if you read the directions, it is from linux to windows. meaning the share is on windows and you are on linux. is that what you are trying to do?
 
Old 01-13-2006, 04:40 PM   #6
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
yeah

i'm on linux and I'm trying to reach a laser printer on windows. Used to be able to, but I messed up something or another when trying to network with a mac and now I can't access any shares on the windows machine (but did nothing to the windows machine, so I know its the linux box)
 
Old 01-13-2006, 07:13 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It could be that your firewall script isn't loading the ip_conntrack_netbios_ns module. That's not a problem for me as I like to stay hidden from the netbios chatter but if you need to get to Windows shares, then you need to allow netbios traffic back through your firewall.

If you run the command: lsmod, you should see it listed somthing like this.
Code:
Module                  Size  Used by
ip_conntrack_netbios_ns     2880  0
You can turn it on real quick with the command:
modprobe ip_conntrack_netbios_ns

If you want it on at every boot, you could put that into your firewall script.
As a side note, I think that smb4K is a really neat samba-client GUI tool.
 
Old 01-13-2006, 08:42 PM   #8
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
hmmm

hmmm
i have this

ip_conntrack 56213 2 iptable_nat,ipt_state

but don't see a module specifically called that with netbios_ns.

tried kicking it in with modprobe and said module not found.

(i'm running fc4 btw)

Ed
 
Old 01-13-2006, 08:50 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I'm running FC4 also. I can't see any Windows boxen unless I run the command: modprobe ip_conntrack_netbios_ns .

I have that line in my firewall script also. It's commented out as I don't need to get to any MS shares but for this forum.

uname -r
2.6.14-1.1656_FC4

Last edited by homey; 01-13-2006 at 08:52 PM.
 
Old 01-13-2006, 10:28 PM   #10
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
weird.

says:
FATAL: module ... not found.
im running a bit older of a version, but only cause my puter acts funny with latest updates.

i'm yumming now to see if there are kernel updates that will work for my smp amd 64 system.

Last edited by circuithead; 01-13-2006 at 10:32 PM.
 
Old 01-13-2006, 10:54 PM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You may not need that exact mod as my Berry livecd works with out it. It does have a less restrictive firewall too.
Does yours work with the firwall off?

service iptables stop
 
Old 01-13-2006, 11:30 PM   #12
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
nope. i'm also not able to ping the netbios name of the xp machine either. (but can the ip address)

i'm wondering if the %T#@%#@ networkmanager somehow screwed up the dns client

what do you have as defaults for your resolution order?
i've played with them a bit, but they are currently set to:
hosts, NIS, DNS, LDAP.(i base this on webmin, which is what I normally use to tweak my system)
 
Old 01-13-2006, 11:58 PM   #13
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I don't have NetworkManager installed. I went to a box which isn't using my network dns and was able to ping the xp box by address, not name. Still, when I ran modprobe ip_conntrack_netbios-ns , the xp box shows up in Smb4K .

That leads to the question...is xp firewall blocking you?
 
Old 01-14-2006, 02:16 PM   #14
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
nope, i don't use the microsoft firewall, I use zone alarms firewall, and I turned it off.

i can ping the ip though, I'm thinking there must be something wrong with netbios settings or something...isn't that samba controlled?
 
Old 01-14-2006, 02:17 PM   #15
circuithead
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
btw, when I try to ping the name (XEON) it tries to ping xeon.com
 
  


Reply



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
smbclient cannot connect ivanatora Linux - Networking 8 08-03-2006 08:52 AM
smbclient - connect to a Win share loopoo Linux - Networking 5 12-12-2005 08:29 AM
smbclient - connect to a Win share loopoo Linux - Newbie 2 12-12-2005 05:54 AM
smbclient - trying to connect to the network rtil Linux - Networking 12 12-14-2004 07:13 AM
Smbclient cannot connect to WinXP machine Xylon Slackware 10 10-02-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 AM.

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
Open Source Consulting | Domain Registration