samba-regedit: 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/samba-regedit - from package: samba4-client

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

On Debian possible default full paths are:

/usr/bin/samba-regedit - from package: samba-common-bin

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