????? HELP!!! what is wrong with this code? ???????

Paul De Bra debra at alice.UUCP
Wed Oct 19 08:58:48 AEST 1988


In article <10146 at cup.portal.com> thad at cup.portal.com (Thad Thad Floryan) writes:
>Doug Gwyn writes: "It is not wise to have the current directory early
>in the PATH directory list."
>

I fully agree with Doug. Having the current directory early in the PATH
makes you very succeptible to trojan horses.

If you go to someone elses directory (don't tell me you never do this) and
execute a command, say ls, or wc, you do not want to be executing a program
with that name which accidently exists in this directory and does something
silly like "rm -r $HOME".

And root certainly does not want to have the current directory in the path,
when he does something like "find /usr -name core -exec rm \{\} \;"

The only problem with NOT having the current directory early in the PATH
is that many beginners call their first program "test".

Paul.
-- 
-------------------------------------------------------------------------
|debra at research.att.com   | uunet!research!debra     | att!grumpy!debra |
-------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list