ecryptfs-rewrite-file: 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/ecryptfs-rewrite-file - from package: ecryptfs-utils

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

On Debian possible default full paths are:

/usr/bin/ecryptfs-rewrite-file - from package: ecryptfs-utils

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