[KLUG Members] why need executable absolute path?

Wesley Leonard members@kalamazoolinux.org
Sat, 3 Aug 2002 17:32:56 -0400 (EDT)


The short answer is security.

I could create a script file called "ls" and put it in the tmp dir and if
you were poking around in there and you typed "ls" to see the files my
script would do whatever naughty stuff it wanted.
You don't have to do the full path ( /home/yourdir/somefile ), you can
just do this:
../somefile


You COULD add your current directory to your PATH environment variable but
I'd be nervous about doing it on a multi user system...
l8er


> While in a subdirectory, I can type
>
> vi somefile
>
> It will open because the file (somefile) is in the current directory.
> But, if the file is executable, I can't type
>
> somefile
>
> I have to type
>
> /home/somedir/somefile
>
> Why is that?
>
> kind regards,
>
> bill
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 


-- 
Wesley Leonard

marshall@pacdemon.org                   http://pacdemon.org
marshall@westmichigancomputing.com      http://westmichigancomputing.com

"Rather than form a federation with Microsoft and work with what we had
already created, there was this notion that the world should be offered an
alternative."    -- Craig Mundie, CTO of Microsoft Corporation