smbencrypt: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/smbencrypt - from package: freeradius-utils

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/smbencrypt - from package: freeradius-utils

You may install the required package with command apt-get install {package}
Error in other languages:
smbencrypt: bevel nie gevind nie
smbencrypt: comandă negăsită
smbencrypt: comando não encontrado
smbencrypt: commande introuvable
smbencrypt: command not found
smbencrypt: käsku ei ole
smbencrypt: không tìm thấy lệnh
smbencrypt: komanda nerasta
smbencrypt: Kommando nicht gefunden.
smbencrypt: kommandot finns inte
smbencrypt: komut yok
smbencrypt: nie znaleziono polecenia
smbencrypt: níor aimsíodh an t-ordú
smbencrypt: no se encontró la orden
smbencrypt: no s'ha trobat l'ordre
smbencrypt: opdracht niet gevonden
smbencrypt: parancs nem található
smbencrypt: perintah tidak ditemukan
smbencrypt: príkaz nenájdený
smbencrypt: příkaz nenalezen
smbencrypt: команда не найдена
smbencrypt: командата не е открита
smbencrypt: 命令找不到
smbencrypt: コマンドが見つかりません