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

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