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

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

On Debian possible default full paths are:

/usr/bin/passmass - from package: expect

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