Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


LinkBack Search this Thread
Old 01-31-2011, 06:29 PM   #1
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 421
Blog Entries: 28

Rep: Reputation: 2
Samba only access by ip but not hostname/server string

Hi, I am using samba version 3 (probably), and the problem is that the linux based nas can only be accessed via its ip 192.168.x.x but not its hostname /server string appointed by the smb.conf file:
netbios name = NAS
server string = NAS
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
interfaces = eth0 lo
For example:
\\nas\file... doesnt work
\\ works however.
I tried to search this problem online, but there is very little information and answered questions regarding. Thanks!
Ted C.
Old 02-01-2011, 02:24 PM   #2
Senior Member
Registered: Aug 2006
Distribution: Arch 2014.02.01
Posts: 2,317
Blog Entries: 1

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
I use the direct IP address as is mentioned above.

I have not been able to get FreeNAS to be reachable by its netbios name either.
Old 02-01-2011, 11:35 PM   #3
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 421
Blog Entries: 28

Original Poster
Rep: Reputation: 2
Hi, I have found the solution to this problem, you can go ahead and try:
edit this line in smb.conf:
interfaces = eth0
Old 04-06-2011, 12:25 AM   #4
LQ Newbie
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Save my night

OMG! I can't believe that's only this... Thanks a lot!


netbios, samba

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba domain name and server string keeps changing PatriceJ Linux - Networking 5 07-30-2010 06:06 AM
hostname - for mail server (or any other remote access server) yogaboy Linux - Newbie 4 02-06-2007 08:53 PM
[Samba] server string Wim Sturkenboom Linux - Software 7 09-28-2006 04:34 AM
Can't access server using hostname from other PCs on the local network binister Linux - Software 5 09-01-2006 03:13 AM
Samba Server String delamatrix Linux - Networking 2 04-25-2005 06:50 PM

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