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.


** Changed in: sudo (Ubuntu)
   Importance: Undecided => Wishlist
       Status: New => Triaged

-- 
hardy sudo path is always reset
https://bugs.launchpad.net/bugs/192651
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to