gnome-session-quit: 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/bin/gnome-session-quit - from package: gnome-session-bin

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