hostap_rid: 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 Debian possible default full paths are:

/usr/sbin/hostap_rid - from package: hostap-utils

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