cupsaddsmb: 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/sbin/cupsaddsmb - from package: cups

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

On Debian possible default full paths are:

/usr/sbin/cupsaddsmb - from package: cups-client

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