pamfile: 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/pamfile - from package: netpbm-progs

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

On Debian possible default full paths are:

/usr/bin/pamfile - from package: netpbm

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