Operating System - HP-UX
1823416 Members
2622 Online
109655 Solutions
New Discussion юеВ

Re: execute permission denied

 
SOLVED
Go to solution
Patrick Wirth
Frequent Advisor

execute permission denied

Ok, this is a wierd one.

I've installed several opensource packages that I got from the developer technical resources. Nothing special.

However, when I try to execute say, vim. I get

sh: vim: Execute permission denied.

Now, I'm root and the execute permissions seem fine. Is there something special about sh-posix? No acl stuff is active so I'm confused.

This also happens for other apps that are under /usr/local/bin. Not all, just most.

everything seems to be owned by user bin group bin. If I change it to root:sys, the problem is the same. permissions are 755 or 555 for the various files.

I downloaded all the files and then installed them in a depot using

for i in *.depot
> do
> swcopy -s ${PWD}/$i \* @ /tmp/patch_depot
> done

this seemed fine and swinstall had no problems with it.

Just for fun I rebooted the box as well.

Any ideas?
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: execute permission denied

silly question, but what model 9000 are you using, and what does the command :
file show?
e.g. file /usr/local/bin/vim
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
A. Clay Stephenson
Acclaimed Contributor

Re: execute permission denied

Hi:

Just for fun, do a 'file /usr/local/bin/vim' and post the output.
If it ain't broke, I can fix that.
Santosh Nair_1
Honored Contributor
Solution

Re: execute permission denied

The "execute permissions denied" error usually indicates one of two things. One is that the user does not have execute permissions on the file. The other is that the executable is not made for this OS level, i.e. you've installed a 11.0 executable on a 10.20 machine. 10.20 executables should run on 11.0, just not the other way around. What OS are you installing on and is the depot made for that OS?

-Santosh
Life is what's happening while you're busy making other plans
Patrick Wirth
Frequent Advisor

Re: execute permission denied

Hmm.

vim: ELF-32 executable object file.

This is a j6000 with 11i. Only 64 bit apps?
Patrick Wirth
Frequent Advisor

Re: execute permission denied

Santosh Nair got it right.

I had inadvertently grabbed the 11.20 binaries instead of the 11.11 ones.

Now, the full solution is to grab that scroll bar at the bottom of the swinstall gui. Pull left and examine the versions of the apps. It was painfully obvious.

There's probably a commandline to show the package version for binary X as well.

Thanks guys. Yay. I have to refetch these suckers.