r.sunmask: 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/lib64/grass-6.4.4/bin/r.sunmask - from package: grass

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

On Debian possible default full paths are:

/usr/lib/grass64/bin/r.sunmask - from package: grass-core

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