[ale] What's wrong, could not execute executables?

Michael H. Warfield mhw at wittsend.com
Fri Oct 29 09:48:47 EDT 1999


On Fri, Oct 29, 1999 at 11:37:31AM +0700, Bhaskar Kumar Regmi wrote:

> I cann't execute programs(shell, perl, php,etc.) by just typing file name
> in RedHat6.1. It says Permission denied, eventhough execute permission is 
> there. Path, permissions everything are correct. Same programs are working
> fine in RedHat6.0 and 5.x.

> But if I type: perl file_name it works

> #!/usr/bin/perl line is there the the program. It should work just by
> typing file name of the script.

> What is going wrong? Can anybody help?

	Welllll....  I don't really have enough to go on, but I can make
a couple of WAGs (Wild A** Guesses).

	1) Are you running as root or a common user?  (WAG - root)

	2) Are the files you are running in your current directory or
somewhere else?  (WAG - Current directory)

	Try typing this:	./name_of_program

	Instead of this:	name_of_program

	Note the addition of the leading ./ in front of the name.

	If that works, then "." is not in your path.  You can add it there
with the following command:

	export PATH=$PATH:.

	You really DON'T want to do this as root, however.  It leaves you
open to trojan horse attacks, which is why it is not in root's default
path.  In something like Windows or DOS, you don't have a choice and
'.' is inherently always in your path (and checked first) and that's a
contributing factor to the preponderance of virii and trojans in those
environments.

> Bhaskar

> *************************************************************
> * Bhaskar Kumar Regmi		Email: 	bhaskar at ait.ac.th   *
> * Regional Computer Center	Tel:	(66)(2)5248241(Res.)*	 	       
> * AIT, PO BOX 4, Klong Luang		5245336 (Office)    *
> * Pathumthani 12120, Thailand	Fax:	(66)(2)5162120      *
> *************************************************************

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!






More information about the Ale mailing list