Wins Status in Samba

Posted on 2004-09-09
Medium Priority
Last Modified: 2007-12-19
How do I get WINS status (who is registered, etc.) from a Samba/WINS server?
Question by:awacs0
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 14

Expert Comment

ID: 12024026
you have this commands for samba


SAMBA is a suite of programs initially developed by Andrew Tridgell. It can be downloaded from http://samba.anu.edu.au/samba/ 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



Author Comment

ID: 12025992
And this answered my question ... how?

Accepted Solution

ivyfranklin earned 500 total points
ID: 12028540
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.

Expert Comment

ID: 12028550
smbstatus will also show you who is currently attached to your computer.

Author Comment

ID: 12028656
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.

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question