Operating System - HP-UX
1834048 Members
2289 Online
110063 Solutions
New Discussion

Re: Execute permission denied

 
Carles Viaplana
Valued Contributor

Execute permission denied

Hello,

I can't execute a file. See output:

# uname -a
HP-UX omniback B.11.11 U 9000/811 2010699390 unlimited-user license
# ll -d check_disk
-rwx------ 1 root sys 140888 Jun 2 10:00 check_disk
# ./check_disk
sh: ./check_disk: Execute permission denied.
# whoami
root
#

Any idea?
Thanks in advance for your help.
Regards,

Carles
8 REPLIES 8
Hemmetter
Esteemed Contributor

Re: Execute permission denied

Hi Carles

Try to execute by:

# sh -x ./heck_disk

it may show the problem.

rgds
HGH
melvyn burnard
Honored Contributor

Re: Execute permission denied

Is this a script?
or a compiled binary?
If a compiled binary where did you get it from?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Hemmetter
Esteemed Contributor

Re: Execute permission denied

Hi again

due to the size of 140888 byte i guess it is a binary

what gives
# file check_disk
?

HGH
Carles Viaplana
Valued Contributor

Re: Execute permission denied

Hello,

This is a compiled binary we get from http://www.nagiosexchange.org/HP-UX.81.0.html?&tx_netnagext_pi1[p_view]=40.

About file info...

# file check_disk
check_disk: PA-RISC2.0 shared executable dynamically linked -not stripped
#

Thanks in advance for your help.
Regards,

Carles
melvyn burnard
Honored Contributor

Re: Execute permission denied

That is what I suspected.
From your model string it appears this may be a PARISC 1.x server, and you are trying to run a binary compiled on a PARISC 2.x server.
This will give this error, you need to get a version compiled for use on a PARISC 1.x server
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Carles Viaplana
Valued Contributor

Re: Execute permission denied

Hello again,

I already tried in other system (same HP-UX version) and it works fine.

Regards,

Carles
Arunvijai_4
Honored Contributor

Re: Execute permission denied

Hi Carles,

Try to run under gdb ..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Carles Viaplana
Valued Contributor

Re: Execute permission denied

Finally I found new script works fine on PA-RISC1.0.

Thanks to all for your help.
Regards,

Carles