Operating System - HP-UX
1852182 Members
12566 Online
104064 Solutions
New Discussion

Re: /usr/local/bin in PATH

 
SOLVED
Go to solution
Ed Hon
Regular Advisor

/usr/local/bin in PATH

Is it usual to have /usr/local/bin in the PATH?
3 REPLIES 3
Sanjay_6
Honored Contributor

Re: /usr/local/bin in PATH

yes.

But you may have to add it manually in your profile. Don't think it gets added by default.

Hope this helps.

Regds
Pete Randall
Outstanding Contributor

Re: /usr/local/bin in PATH

Ed,

It's common but not recommended because of the security risk associated with it. The bad guys can put scripts in /usr/local/bin that imitate regular commands and use these back doors to steal passwords or accomplish other forms of mischief.


Pete

Pete
Sundar_7
Honored Contributor
Solution

Re: /usr/local/bin in PATH

Sure it is usual to have /usr/local/bin in the PATH.

Security folks will tell you, it should be searched only after /usr/bin, /usr/sbin or /sbin directories.

Make sure you dont have world writable permissions to the directory also ensure you have /usr/sbin, /usr/bin and /sbin listed before /usr/local/bin in the PATH.

Learn What to do ,How to do and more importantly When to do ?