lockname: 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/sbin/lockname - from package: hylafax+

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

On Debian possible default full paths are:

/usr/sbin/lockname - from package: hylafax-server

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