Comment 12 for bug 191264

Revision history for this message
Ralph Janke (txwikinger) wrote : Re: run "sudo kate" and got a "command not found"

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.