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 02:06:12 UTC 2010


On Thu, 4 Feb 2010 17:08:56 -0800
suvayu ali wrote:

> That Bugzilla says updates have been pushed to F10. Shouldn't that
> mean its fixed in F11 and F12?

That bugzilla just complained that sudo -V printed info
that conflicted with the behavior of sudo. Apparently the update
they pushed merely made sudo -V stop printing anything except
the version so it no longer conflicts :-).

At some point they did at least add a secure_path option you can
set in the sudoers file like so:

Defaults    secure_path = "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin"

You still get a hard coded path, but at least you can change
the hard coding in the /etc/sudoers file to something like the
above string.


More information about the users mailing list