[95952] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Newbie question.

daemon@ATHENA.MIT.EDU (timsoftware@liposome.genebee.msu.s)
Thu Oct 22 12:56:06 1998

From: timsoftware@liposome.genebee.msu.su
Date: Thu, 22 Oct 1998 20:42:29 +0400 (MSD)
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
In-Reply-To: <DEF12C237230D211865400805FF5603AE7B6@ssc.msu.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com



On Thu, 22 Oct 1998, Joshi, Vivek wrote:

> Hi,	
> 	I have compiled a c-program , but when i try to run it i get the
> error message "bash : a.out :command not found". Could you please suggest
> what could be wrong
> 
> Thanks,
> Vivek
Just type : ./a.out
Linux is configured not to run programms in the current directory. It is
the part of its security system. An evil hacker can download you his own
version of "ls" or "passwd" for example and destroy your system.
You can make your progs directory for example:
/home/user/myprogs
Then add these line to your .bash_profile:
PATH=/home/user/myprogs
export PATH
After that you will not have to type ./a.out only: a.out
tim king


-- 
  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.


home help back first fref pref prev next nref lref last post