hardy sudo path is always reset
Bug #192651 reported by
sibidiba
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo |
Fix Released
|
Unknown
|
|||
sudo (Fedora) |
Fix Released
|
Medium
|
|||
sudo (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: sudo
According to /usr/share/
--with-
This is basically ok, but you should be able to change the default PATH for sudo.
I tried in sudoers:
Defaults env_reset
Defaults env_keep="HOME"
and
Defaults !env_reset
But PATH is always reset to the configured one.
Changed in sudo: | |
status: | Unknown → In Progress |
Changed in sudo: | |
status: | In Progress → Fix Released |
Changed in sudo (Fedora): | |
status: | Unknown → Confirmed |
Changed in sudo (Fedora): | |
status: | Confirmed → Fix Committed |
Changed in sudo (Fedora): | |
status: | Fix Committed → Fix Released |
Changed in sudo (Fedora): | |
importance: | Unknown → Medium |
To post a comment you must log in.
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.