gnome-screensaver: 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/gnome-screensaver - from package: gnome-screensaver

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

On Debian possible default full paths are:

/usr/bin/gnome-screensaver - from package: gnome-screensaver

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