View Single Post
  #3 (permalink)  
Old 30-Jun-2009, 13:14
hcvv's Avatar
hcvv hcvv is online now
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,910
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: Relative pathname for executable file

This practice is however not considered to be harmless. Especialy do not add . (current directory) to your PATH in the case of root!

Think of root standing somewhere in a directory being owned by 'some user' (root can go everywhere can't she/he?). And this 'some user' has an executable called ls there. Imagin what would happen if root tried a 'simple' ls there.
__________________
Henk van Velden
Reply With Quote