Comment 13 for bug 191264

Revision history for this message
yegle (cnyegle) wrote : Re: [Bug 191264] Re: run "sudo kate" and got a "command not found"

Thank you for your answer!

On 3/6/08, Ralph Janke <email address hidden> wrote:
>
> Ok.. I finally found the problem. Sorry for it taking so long!
>
> sudo for ubuntu is compiled with a secure_path that contains
>
> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin".
>
> Therefore using sudo kate would only look for kate in the search path
> above, not in the search path you have defined in /etc/environment or in
> your user environment. This is a security measure to prevent sudo users
> to execute a wrong system command by accident and therefore possibly
> create a security breach.
>
> I am not sure if there is a real solution for this except an override of
> the compiled search path by a configured one in /etc. I have not found
> yet if this possible.
>
>
> --
> run "sudo kate" and got a "command not found"
> https://bugs.launchpad.net/bugs/191264
> You received this bug notification because you are a direct subscriber
> of the bug.
>