User Tools

Site Tools


samba:test_nmbd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
samba:test_nmbd [2019/12/04 19:50] – removed petersamba:test_nmbd [2020/07/23 19:02] (current) – old revision restored (2016/07/10 11:19) 192.99.15.199
Line 1: Line 1:
 +====== Samba - Test nmbd ======
 +
 +Check that nmbd is running:
 +
 +<code bash>
 +ps -eaf | grep nmbd
 +</code>
 +
 +Result:
 +
 +<code>
 +root       3422      1  0 10:30 ?        00:00:00 /usr/sbin/nmbd -D
 +root       5178   4327  0 11:14 pts/0    00:00:00 grep --color=auto nmbd
 +</code>
 +
 +If nmbd does not appear in the list reported by ps, it should be started as root using the normal means (/usr/local/samba/bin/nmbd -D).
 +
 +Samba servers have a special NetBIOS name, **<nowiki>__SAMBA__</nowiki>**, to which they will always respond. By querying the server for this name, we can verify that nmbd is working correctly. The **-U** flag is used to specify the address to which the query should be sent.
 +
 +<code bash>
 +nmblookup -U 127.0.0.1 __SAMBA__
 +</code>
 +
 +Result:
 +
 +<code>
 +querying __SAMBA__ on 127.0.0.1
 +192.168.0.2 __SAMBA__<00>
 +192.168.1.2 __SAMBA__<00>
 +</code>
 +
 +If nmbd is not running, the following error message will be shown:
 +
 +<code>
 +name_query failed to find name __SAMBA__
 +</code>
 +
 +This can also be caused by not including the loopback interface name for the interfaces parameter in smb.conf and setting bind interfaces only = yes
 +
  
samba/test_nmbd.1575489048.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki