LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-25-2009, 12:25 PM   #1
tebucky
Member
 
Registered: Mar 2004
Posts: 89

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


Hello,

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?

TIA!
 
Old 02-25-2009, 12:45 PM   #2
MasterC
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?

-Chad
 
Old 02-25-2009, 12:56 PM   #3
tebucky
Member
 
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, 12:51 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,274

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
C:\WINDOWS\system32\drivers\etc\hosts
ipaddress1 hostname1
ipaddress2 hostname2
 
Old 02-26-2009, 07:33 AM   #5
tebucky
Member
 
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!
 
  


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


All times are GMT -5. The time now is 01:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration