Operating System - HP-UX
1827260 Members
2181 Online
109717 Solutions
New Discussion

Getting Execute permission denied

 
SOLVED
Go to solution
Pankaj_11
New Member

Getting Execute permission denied

I am using HP UX 11.0.

I have compiled a code and generated the executable. When I run the executable, I get "Execute permission denied" although execute permissions are set.

What is the reason for this and how can I get rid of it?

Thanks in advance.
Pankaj
8 REPLIES 8
Eric Antunes
Honored Contributor
Solution

Re: Getting Execute permission denied

Hi Pankaj,

Is the executable file in executables directories for the user/group?

Eric
Each and every day is a good day to learn.
bhavin asokan
Honored Contributor

Re: Getting Execute permission denied

hi pankaj,

the file is kept where.the path of file should be there in your profile.after adding entry exit the login and login again.

regds,
Cheryl Griffin
Honored Contributor

Re: Getting Execute permission denied

If the file is incompatible with the system type, you might also receive this error.

Check the PA-RISC level using file:
# file (executable)
(executable): PA-RISC1.1 shared executable dynamically linked
"Downtime is a Crime."
Henry Chua
Super Advisor

Re: Getting Execute permission denied

Hi Pankaj,

Just out of curiosity, can u do a 'what' on the executable?. Is it possible that this binary executable file may be having some conflicts with your UX platform? where did u compile it?
Sridhar Bhaskarla
Honored Contributor

Re: Getting Execute permission denied

Hi Pankaj,

If the permissions are set to execute and if you are still unable to execute, then follow Cheryl's advice. It's mostly due to incompatible hardware.

$file #file type
$file /stand/vmunix #CPU type

Compare them. If the CPU type is more than or equal to file type, then it should execute. Otherwise, it won't. For ex., PARISC1.1 type executables will get executed on PARISC2.0 machines but not the otherway.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Govind_3
Regular Advisor

Re: Getting Execute permission denied

1)Are there any ACLS Set ? or is it just regular permissions set that you are using?

2)Is the name of the executable same as any other system executable which is set ahead in the $PATH which might be getting executed before this ./executable ?

3)If you create a executable to just echo "Execute permission denied", you would get the same message when you execute it ;) LOL, I guess That wouldnt be the case anyhow.

-Cheers
Govind
Pankaj_11
New Member

Re: Getting Execute permission denied

Hi,
Thanks to all who replied and it really helped me a lot. I have got the problem solved.

Thanks
Pankaj_11
New Member

Re: Getting Execute permission denied

Thanks the problem has been solved