Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux