Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-25-2009, 01:25 PM   #1
Registered: Mar 2004
Posts: 89

Rep: Reputation: 15
Can't access Samba by host name


I'm running samba on my ubuntu 8.10 box within my home LAN. I'm trying to access the share via my Macbook and a Windowx XP box. I'm able to see the host on both machines but I get a permissions error when I try to connect. I'm able to access the share when I connect to it via its IP address but I can't via the host name.

Any ideas on what I need to do to fix this?

Old 02-25-2009, 01:45 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Where is your DNS server on your network (assuming you have one)? I would think this would point to a DNS issue. Are you prompted for authentication when you try to connect or is it just immediately denying you?

Old 02-25-2009, 01:56 PM   #3
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
To my knowledge I'm not running a DNS server on my LAN. When I try and connect to it via the hostname it gives me a permissions error and denies me. I do get prompted for credentials when I connect via IP and it works successfully.

Does this help?
Old 02-26-2009, 01:51 AM   #4
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
If you dont have DNS Server your LAN clients dont know the way to resolve hostname and corresponding ip address. IF you dont have DNS server the following way will help you to solve your problem

For Linux Server
vi /etc/hosts
ipaddress1 hostname1
ipaddress2 hostname2

For your Windows machines
ipaddress1 hostname1
ipaddress2 hostname2
Old 02-26-2009, 08:33 AM   #5
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Configuring the host files did the trick.... I should of thought of that but thanks nonetheless!


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
Deny a host access to all services objorkum Linux - Networking 5 08-17-2007 03:54 PM
Samba - can't access local host from Windows bostonantifan Linux - Server 1 03-04-2007 02:19 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 06:33 AM
Access Virtual host by IP mikeshn Linux - Networking 2 01-10-2004 11:25 AM
How do I access mail from another host? correro Linux - General 6 03-24-2003 07:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration