Comment 1 for bug 192651

Revision history for this message
Martin Pitt (pitti) wrote :

You can change $PATH for one command with a little trick:

  $ sudo PATH=$PATH sh -c 'echo $PATH'

to use the user's $PATH. You can set it to anything else, too.

However, I agree that it would be nice to provide a sudoers configuration variable to change the default.