The dangers of prepending $PATH

This might be an interesting read w.r.t. PATH hijacking:

check your ‘.profile’:
grep PATH .profile

4 Likes

I mostly follow the advice here, but I’ve had /usr/local/bin first in my path; that may not be horrible because elevated privileges are needed to run there, but I followed the advice here; switched it on one system and I am in the process of changing it in other setups too. The remainder of my path selections, particularly the personal path entries ARE at the end of my path, so that’s better.

5 Likes

Indeed! Thanks for sharing this.

2 Likes