Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

Wins Status in Samba

How do I get WINS status (who is registered, etc.) from a Samba/WINS server?
  • 2
  • 2
1 Solution
you have this commands for samba


SAMBA is a suite of programs initially developed by Andrew Tridgell. It can be downloaded from as well as various mirror sites around the world (see page 230 for a list of sites). The following definitions from the official SAMBA Web site describe the services included:

    * smbd — the SMB server. This server handles actual connections from clients, doing all the file, permission, and user name work. NT clients connect to the SMB daemon, the smbd program that runs on the Unix server, using SMB calls. For all intents and purposes, the Unix system acts like an NT server.
    * nmbd — the NetBIOS name server. Clients can locate servers using the Unix server as a master browser, a WINS server, or a WINS proxy server. This name server also lets Unix computers locate NT servers.
    * smbclient — the Unix-hosted client program. This program provides an FTP-like interface so that Unix users can, if necessary, access files and folders on an NT computer.
    * smbrun — a little “glue” program to help the server run external programs. For example, smbrun allows the smbd daemon to run shell commands.
    * testprns — a program to test server access to printers.
    * testparm — a program to test the SAMBA configuration file for correctness. It reads the smb.conf file, verifies that share names are valid and, if necessary, can be used to get a dump of all the services provided by SAMBA.
    * smb.conf — the SAMBA configuration file. Edit this file to make the SAMBA server a WINS server or a domain master browser. You can specify that an NT server instead of a Unix server should authenticate users.
    * smbprint — a sample script that lets a Unix host use smbclient to print to an SMB server.


you have this in EE maybe help  you

awacs0Author Commented:
And this answered my question ... how?
The Samba HOWTO has the answer to this question:

The answer is that this information is located in the file wins.dat.  The HOWTO says this file is found in either /var/run/samba or /usr/local/samba/var/locks.  However, on my RedHat 9 machine, the file is found in /var/cache/samba.  If you can't find the file in any of those locations, a 'locate wins.dat' should help.
smbstatus will also show you who is currently attached to your computer.
awacs0Author Commented:
Your first comment was spot on. Thank you very much! (/var/lib/samba/wins.dat in Debian)

"smbstatus will also show you who is currently attached to your computer." Also interesting, thanks again, though not relevant here.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now