pamtester: 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/pamtester - from package: pamtester

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

On Debian possible default full paths are:

/usr/bin/pamtester - from package: pamtester

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