Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a linux server set up with a number of samba shares on our mixed windows/mac/linux network. The shares are accessible if we go to \\192.168.x.x\share, however we can't access the server by it's netbios name (as set-up in the smb.conf file). It's also not listed on the network, whereas all the other machines are -- including the other linux machines.

We're unable to see any difference in the config of the other machines compared to this particular one, other than that they are desktop Ubuntu machines and this is a "headless" CentOS server.

Here's the config file:

[global]
  workgroup = WORKGROUP # correct workgroup name for the network
  netbios name = foobar # same as the hostname of the box
  security = share
  guest account = nobody
  local master = no # tried yes, no difference
  preferred master = no # tried yes, no difference
  ; wins support = yes
  ; dns proxy = yes

# shares are assigned here...

The netbios name is set to the same value as the linux hostname for the box, but it's still not showing on the network whether we set the netbios name in samba or not.

What else do I need to set so that the machine shows up on the network?

share|improve this question
    
Can you ping or traceroute to the server by netbios name? –  CIA Feb 26 '13 at 5:32
    
All on the same subnet? –  Simon Catlin Feb 26 '13 at 7:21
    
Do you have UDP 137 & 138 as well as TCP 139 and 445 open in your iptables config? Also, what is the state of selinux? –  s.co.tt Jul 30 '13 at 18:06
add comment

1 Answer

Look into "Using Samba - 7.3 Name Resolution with Samba"
What does "nmblookup foobar" on the Samba-server gives you?
If that's not working (e.g. it gives "name_query failed to find name foobar"), have you tried setting up a WINS-server or added a LMHOSTS-file?

share|improve this answer
    
The issue is that other machines show up on the network with a name, just not this one. Not sure how editing the lmhosts file would help in this situation. –  Phillip Oldham Jul 20 '11 at 9:03
    
But are these other machines set up in a DNS / WINS? And is the Samba-server too? Since you use "local master = yes" browsing lookups will be used on the Samba-server, hence set it up as or use a WINS-server or add a LMHOSTS-file for name based lookups. More info here: samba.org/samba/docs/man/Samba-HOWTO-Collection/… –  Henk Jul 20 '11 at 9:45
    
No WINS or DNS servers; it's a standard windows WorkGroup network set-up. All other machines added to the network just "show up", including the Ubuntu ones. It's just this one CentOS server. –  Phillip Oldham Jul 20 '11 at 10:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.