[98266] in RedHat Linux List
RE: Running a C program
daemon@ATHENA.MIT.EDU (Charles Galpin)
Sat Nov 7 21:31:37 1998
Date: Sat, 7 Nov 1998 21:28:11 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: Ronnie Thum <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Ronnie
It is considerd a security risk have the current directory (.) in you path.
The general idea is that someone could put a trojan horse named ls somewhere
on you system, and when you tried to do a ls it would get executed, perhaps
doing nasty things.
With that said, edit your $HOME/.bash_profile and add . to the END of your
path. this is considered safer.
hth
charles
===== Original Message from Ronnie Thum <redhat-list@redhat.com> at 11/07/98
9:20 pm
>Hi,
>
>Whenever I run a C program compiled in GCC ver 2.7.2.3, I need to type
>'./programname'.
>Why can't I just type 'programname' ?
>Is there any settings I need to change ?
>
>TIA
>
>Rgds
>Ronnie
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.