Is there a command line way to see what version of Samba I am running?

  • 5
    Please make sure you're running 4.6.4/4.5.10/4.4.14 or up, to avoid the critical CVE-2017-7494 vulnerability ("SambaCry"). Commented May 25, 2017 at 23:25
  • And 4.13.17, 4.14.12 and 4.15.5 for CVE-2021-44142, and surely others in future.
    – msanford
    Commented Feb 2, 2022 at 2:28

3 Answers 3


Use the smbstatus command from the shell to get an output like this Samba version 3.0.25b-1.el5_1.4

  • 16
    +1 but I would run smbstatus --version otherwise you'll get a lot of output on a busy server. Commented Mar 12, 2010 at 21:37

Just enter below command on your terminal

smbd -V
  • 2
    Works! Don't understand the downvote.
    – Martin_W
    Commented Nov 8, 2016 at 4:03
  • idk, I just tried this command and it gave me the Linux kernel version if you run it from Ubuntu 16.04 Commented Apr 20, 2018 at 14:29
  • 1
    This command gives the Samba version and not the SMB version. Already upvoted. Maybe someone is misunderstanding the difference between the smbd (Samba daemon) and SMB (Communication protocol).
    – Terrance
    Commented Jun 21, 2018 at 3:09
  • I just tried in Debian 9.13 and both smbd -V and smbstatus show exactly the same version, this case Samba version 4.13.13-Debian
    – LincolnP
    Commented Jun 8, 2022 at 10:22

For the Linux Samba version type :

$ smbstatus -V
Version 4.6.14-SerNet-RedHat-16.el7

But I guess your domain controller needs is the SMB Protocol version you are using, you can find it by typing :

# smbstatus -p
PID     Username     Group        Machine                           Protocol Version  Encryption           Signing
226861  nobody       nogroup (ipv4:  SMB3_11           -                    partial(AES-128-CMAC)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .