How to tell the version of Samba running
Posted February 11th, 2009 in Linux/Unix/BSD
Samba is a free re-implementation of the SMB/CIFS networking protocol which creates a compatible way of sharing files with Windows computers on Linux and BSD computers. This post looks at how to tell which version of samba is running on the server from the command line.
Use the smbstatus command from the command line to show the version, as well as some other useful information:
$ smbstatus
The first line output from the command is a blank line but the second contains the version number. For example, the second line output from the command on a CentOS 5 machine might look like this:
Samba version 3.0.25b-1.el5_1.4
The smbstatus command also shows who's currently accessing shares, what shares are available and what files are locked.
Some full example output from the smbstatus command is as follows (I've changed the real folder/share names to exampleN):
Samba version 3.0.25b-1.el5_1.4 PID Username Group Machine ------------------------------------------------------------------- 31784 chris chris laptop (192.168.1.177) 2389 chris chris desktop (192.168.1.10) Service pid machine Connected at ------------------------------------------------------- example1 2389 desktop Tue Feb 10 09:30:57 2009 example2 2389 desktop Tue Feb 10 09:30:57 2009 example3 2389 desktop Tue Feb 10 09:30:57 2009 example2 31784 laptop Tue Feb 10 06:41:58 2009 Locked files: Pid Uid DenyMode Access R/W Oplock SharePath Name Time -------------------------------------------------------------------------------------------------- 2389 1000 DENY_NONE 0x100001 RDONLY NONE /var/www example/www/images Tue Feb 10 09:38:30 2009 2389 1000 DENY_NONE 0x100001 RDONLY NONE /var/www example/www/images/gui Tue Feb 10 09:38:31 2009
Related posts:
- Error processing command with SVN on a Samba server from Windows (Sunday, February 15th 2009)
Share or Bookmark
Share or Bookmark this page using the following services. You will need to have an account with the selected service in order to post links or bookmark this page.
Subscribe or Follow
Subscribe via RSS or email, or follow me on Facebook or Twitter below. The RSS icon takes you through to Feedburner where you can select the service or application to use.

