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

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

On Debian possible default full paths are:

/usr/bin/xrdp-sesrun - from package: xrdp

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