LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-19-2004, 12:34 AM   #1
biglaz
LQ Newbie
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 18

Rep: Reputation: 0
Samba connects @ localhost but not @ netbios name


I'm setting up a samba server on redhat 9. The problem is, I can login using the path as //localhost, but not as //server ('server' is the netbios name).

Code:
smbclient -L //localhost -U myuser
Password:
Domain=[SERVER] OS=[Unix] Server=[Samba 3.0.7]

        Sharename       Type      Comment
        ---------       ----      -------
        Test            Disk      Test Dir
        IPC$            IPC       IPC Service (Samba Server)
        ADMIN$          IPC       IPC Service (Samba Server)
        myuser         Disk      Home Directories
Domain=[SERVER] OS=[Unix] Server=[Samba 3.0.7]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        HOME                 SERVER
Code:
smbclient -L //server -U myuser
Password:
tree connect failed: Call returned zero bytes (EOF)
Does anyone know why this would happen?

Thanks
 
Old 10-19-2004, 02:54 AM   #2
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Try putting ip address in it instead of name.


-jack
 
Old 10-19-2004, 10:08 AM   #3
biglaz
LQ Newbie
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Same results.
 
Old 10-19-2004, 11:13 AM   #4
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Try adding '127.0.0.1' to your hosts allow
 
Old 10-19-2004, 12:45 PM   #5
biglaz
LQ Newbie
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Ahh, I figured it out. It was the "hosts allow," even though I thought I set it already.

In my smbd.log I saw this:
Code:
[2004/10/19 12:32:53, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2004/10/19 12:32:53, 0] lib/access.c:check_access(328)
  Denied connection from  (173.221.0.2)
[2004/10/19 12:32:53, 1] smbd/process.c:process_smb(1085)
  Connection denied from 173.221.0.2
So after staring at my config file for 5 minutes, I realized the typo in this line:
hosts allow = 173.221.0 127.

It should be:
hosts allow = 173.221.0. 127.


Stupid mistake... :p
Thanks for the help!

Now if I could just get the windows machines to connect...lol

Last edited by biglaz; 10-19-2004 at 12:49 PM.
 
Old 10-19-2004, 01:22 PM   #6
biglaz
LQ Newbie
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 18

Original Poster
Rep: Reputation: 0
nevermind.

Last edited by biglaz; 10-19-2004 at 01:24 PM.
 
  


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
I can access samba through IP but not through Netbios name EmptyMind Linux - Networking 13 12-05-2010 03:12 AM
Netbios help Samba ilnli Linux - Networking 7 05-03-2010 12:08 AM
Telnet & FTP localhost connects then hangs Derekeigentek Linux - Newbie 3 12-30-2005 10:46 AM
netbios without samba? hotrodowner Linux - Networking 11 03-21-2003 09:10 PM
How do I config Sendmail to accept connects /only/ from localhost marvin Linux - Security 4 05-09-2001 07:26 PM

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

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