você precisa modificar sua configuração do / etc / sudoers para conter esta linha:
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Esta é uma mudança no sudo do lenny para o squeeze. Essa alteração não foi feita no arquivo sudoers para preservar suas personalizações no / etc / sudoers.
Aqui está a entrada de /usr/share/doc/sudo/NEWS.Debian.gz:
The sudo package is no longer configured using --with-secure-path.
Instead, the provided sudoers file now contains a line declaring
'Defaults secure_path=' with the same path content that was previously
hard-coded in the binary. A consequence of this change is that if you
do not have such a definition in sudoers, the PATH searched for commands
by sudo may be empty.
Using explicit paths for each command you want to run with sudo will work
well enough to allow the sudoers file to be updated with a suitable entry
if one is not already present and you choose to not accept the updated
version provided by the package.