Comment 11 for bug 1435492

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Johannes,

My own feeling is that Ubuntu doesn't distinguish as strictly between bin and sbin as you would like to see. This is the standard $PATH in the default /etc/environment:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Possibly it can be justified by the fact that the root user is not enabled by default in a fresh Ubuntu install, but you are encouraged to use sudo when needed. After all, running stuff in sbin as a normal user don't typically do much harm, right?

Anyway, I think that some experienced developer should better comment on your objection.

The easiest ways to fix it for yourself are to either not dropping /sbin from $PATH in ~/.bashrc or prevent ~/.profile from sourcing ~/.bashrc.