Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th September 2004, 03:59 AM
graeder Offline
Registered User
 
Join Date: Aug 2004
Posts: 18
Problem connecting to linux samba server from linux client

I'm having a problem connecting to a linux machine running Fedora 2 and samba from another linux machine running the same. I can connect fine if I boot into windows. I can access the shares, etc. When I try to access the share on the server from linux, I do so using the same usernam and password as I would from Windows. This is the error I receive when I issue the following:

[root@localhost public]# smbclient //linux/home/geoffr -U geoffr
Password:
Domain=[LINUX] OS=[Unix] Server=[Samba 3.0.3-5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

Any insight?

Also - I can ssh from windows to the server, but not from linux...
Reply With Quote
  #2  
Old 18th September 2004, 04:36 AM
dishawjp Offline
Registered User
 
Join Date: Mar 2004
Location: Central NY
Age: 61
Posts: 471
Graeder,

Have you edited your /etc/hosts and hosts.allow files to include your remote box's internal IP address? I'm no samba expert... haven't used MSWindows for a long time, but getting Linux to talk to Linux is usually no big deal.

I really need a bit more information to give any real help, but it sounds like your hosts files may be a problem.

Also, if you're connecting Linux to Linux, why use Samba? If you're on a secure (or even insecure for that matter) internal network, why not use telnet, FTP, or ssh? If the remote box is running MSWindows when you're trying to connect and not a real OS, then I can't help you. Hell, I don't even know how to set an internal IP address on a MSWindows box, much less anything else.

What happens if you try to ping the remote box by IP address from the Linux box?

If you're trying to connect Linux to Linux ( or any real OS like VMS ,or OSX, or BSD ), I can probably help you, but I need a bit more info. If this is a MSWindows deal, maybe another member of this forum can offer much bettter advice than I can.

Jim Dishaw

Last edited by dishawjp; 18th September 2004 at 04:46 AM.
Reply With Quote
  #3  
Old 18th September 2004, 04:53 AM
graeder Offline
Registered User
 
Join Date: Aug 2004
Posts: 18
I'm pretty new to linux and networking with linux, so I didn't even know about the /etc/hosts files. I am trying to connect Linux to Linux, however, I can't even ping the server. It says "host not found." Like I said, in windows it's not a problem. So you suggest editing my hosts and hosts.allow files? Any further info? Thanks for your help.
Reply With Quote
  #4  
Old 19th September 2004, 05:24 AM
graeder Offline
Registered User
 
Join Date: Aug 2004
Posts: 18
Ok, after I made the entry in /etc/hosts I can ping the server, and ssh. However, I still cannot connect to my samba share.
I get the following error even though the share is valid:

smbmount //linux/home/geoffr /mnt/share -o username=geoffr
Password:
3795: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed

I'm sending the same credentials that I have set up on the file server, and how I connect to the share via windows. I'm stuck...
Reply With Quote
  #5  
Old 23rd September 2004, 07:50 PM
theninja Offline
Registered User
 
Join Date: Sep 2004
Location: St. Louis
Posts: 63
There is no need to use samba to mount *nix to *nix it is simpley an nfs share/mount.
For example after you add the linux box name and ip to /etc/hosts....(add both machines to both /etc/hosts)
Edit this file on the serving system..../etc/exports and add
/sharename remote_client_name
open a shell and enter the follwong commands
exportfs -a
mount machine_name:/sharename /mnt (machine_name = name of the machine, /mnt = the mount point)

That should do it. If you want this to automaticly happen after a reboot, add machine_name:/sharename /mnt
to the /etc/fstab file. Do a man for the flagsyou might need.

Hope this helps
Reply With Quote
  #6  
Old 25th September 2004, 03:43 PM
dishawjp Offline
Registered User
 
Join Date: Mar 2004
Location: Central NY
Age: 61
Posts: 471
Grader,

I'd be happy to help you further here, but I have never used Samba. Since I don't use MSWindows I have no reason to. I would suggest searching your error message on;

http://www.google.com/linux

You will probably find some help there.

Jim Dishaw
Reply With Quote
  #7  
Old 10th January 2005, 04:38 PM
jackspenn Offline
Registered User
 
Join Date: Jan 2005
Posts: 1
OK, so I had this same problem and just now saw your thread. It is not a Samba or Windows issue. It is a firewall issue. Basically what you need to do is make sure that you have your firewall settings configured to allow the following ports to be accessed:

137 udp
138 udp
139 tcp
445 tcp

If you do not have these ports open you will not be able to connect from remote machines nor will you be able to use "Network Server" application to see your SMB server on the network.

- Eric Jackson
Reply With Quote
  #8  
Old 7th February 2006, 05:12 PM
Bruno Mesquita Offline
Registered User
 
Join Date: Feb 2006
Posts: 1
SELinux & Samba Server

I was looking for a solution for this problem and find out the SELinux deny access to home directory of the users. You must allow in the configuration file for the home directory.

Bruno.
Reply With Quote
  #9  
Old 7th February 2006, 06:23 PM
rioguia Offline
Registered User
 
Join Date: May 2005
Posts: 104
Using samba with SELinux, see: http://forums.fedoraforum.org/forum/...=selinux+samba

If you eliminate SELinux as an issue, install ethereal and monitor the connection like this:
/usr/sbin/tethereal -i eth#_INTERFACE_OF_LOCAL_NETWORK tcp port 139 and host IP_ADDRESS_SAMBA_CLIENT
Reply With Quote
Reply

Tags
client, connecting, linux, problem, samba, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting Linux desktop to Linux Server micklean1953 Servers & Networking 6 10th September 2008 06:34 PM
connecting to windows server from linux client using VPN(Virtual Private Network) himanshuggc Servers & Networking 2 22nd December 2005 02:58 PM
Problem with bcrealy with FC3 client and Linux PPTP server Vinod Chandran Servers & Networking 0 9th December 2005 05:35 AM
Problem with VPN client connecting VPN server outside my iptables firewall and NAT mtyu Servers & Networking 1 15th July 2005 06:02 AM
Connect to NFS Share on Linux Server from Linux Client using GUI, Nautilus? jusaus Servers & Networking 3 9th December 2004 04:35 AM


Current GMT-time: 08:07 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat