sg_modes: 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/sg_modes - from package: sg3_utils

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

On Debian possible default full paths are:

/usr/bin/sg_modes - from package: sg3-utils

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