Bash: Samba: Command Not Found

Home » CentOS » Bash: Samba: Command Not Found
CentOS 5 Comments

I have installed Sernet Samba however after installation I cannot confirm the version:

samba -V
bash: samba: command not found

5 thoughts on - Bash: Samba: Command Not Found

  • Assuming the install really worked, it sounds like it gets placed in some location that isn’t in your default path. Perhaps some sub-directory in /opt?

  • It is always a good idea to give details about your machine. At leas, version of CentOS.

    You can try

    rpm -qa | grep samba

    There are three (at least) samba packages installed on my CentOS 6
    machine: samba, samba-common, samba-client. None of them brings samba command. You can do

    rpm -ql samba rpm -ql samba-common

    to see what files packages bring. You can do

    rpm -qi samba

    to see information about packages. There probably is somewhere README file
    (/etc/samba would be wild guess) that will tell which version of SAMBA it is.

    Good luck!

    Valeri

    ++++++++++++++++++++++++++++++++++++++++
    Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247
    ++++++++++++++++++++++++++++++++++++++++

  • I dont use samba since a few of year but i dont remember to a command like “samba”

    smbstatus, smbclient, smbd etc. were the commands …

    Am 24.01.2016 um 20:05 schrieb Henry McLaughlin:

  • You will have various services that need to be started.

    If it’s CentOS-7x then it’s somewhere in systemd, I’ve forgotten where they put all possible files. Ah, look in /lib/systemd/system. Samba probably installed smbd and winbind.

    The quickest thing to do is google samba CentOS- as there are plenty of good guides to set it up.

    TL;DR

    The command isn’t samba. The samba daemon is smbd, but you’ve given little information and there’s a bit more to getting it running, though it’s fairly easy, so google it for your version of CentOS, as it’s changed between 6 and 7.

  • While some people on this list might use the sernet same packages .. and some of the sernet guys MIGHT even be on this message list, I wouldn’t necessarily expect to find the best answers here for that question.

    That software is not provided by CentOS, so you should expect to get much better answers for it from their community resources.