No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile
Tom Horsley
tom.horsley at att.net
Fri Feb 5 00:13:18 UTC 2010
On Thu, 4 Feb 2010 16:00:39 -0800
suvayu ali wrote:
> As far as I understand this, sudo still uses your (the regular user's)
> $PATH.
Nope, that's merely what the docs claim. In fact, the security geeks
decided sudo absolutely needed to have a hard coded PATH and as far
as I know the only way to fix that is to rebuild it from source. It
has been like this for a while now.
https://bugzilla.redhat.com/show_bug.cgi?id=475990
Maybe you could create an alias that runs sudo env PATH=$PATH "$@"
or something to sneak the path back into the sudo'ed command...
More information about the users
mailing list