profiles: 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/profiles - from package: samba4-common
/usr/bin/profiles - from package: samba-common

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

On Debian possible default full paths are:

/usr/bin/profiles - from package: samba

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