Wins Status in Samba

Posted on 2004-09-09
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 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 125 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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

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…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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