Is there a command line way to see what version of Samba I am running?
3 Answers
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. Mar 12, 2010 at 21:37
Just enter below command on your terminal
smbd -V
-
2
-
idk, I just tried this command and it gave me the Linux kernel version if you run it from Ubuntu 16.04 Apr 20, 2018 at 14:29
-
1This 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).– TerranceJun 21, 2018 at 3:09
-
I just tried in Debian 9.13 and both
smbd -V
andsmbstatus
show exactly the same version, this case Samba version 4.13.13-Debian– LincolnPJun 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 10.0.0.55 (ipv4:10.0.0.55:61866) SMB3_11 - partial(AES-128-CMAC)