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

  • 4
    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"). – David Refoua May 25 '17 at 23:25

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

  • 11
    +1 but I would run smbstatus --version otherwise you'll get a lot of output on a busy server. – 3dinfluence Mar 12 '10 at 21:37

Just enter below command on your terminal

smbd -V
  • 2
    Works! Don't understand the downvote. – Martin_ATS Nov 8 '16 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 – Gabriel Fair Apr 20 '18 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 Jun 21 '18 at 3:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.