Operating System - HP-UX
1820548 Members
4689 Online
109626 Solutions
New Discussion юеВ

Re: Execute permission denied

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

Execute permission denied

Hi,
op sys: 11.0
machine: d220

I have just installed some software and have been getting no end of ' execute permission denied ' messages. I believe I have checked permissions on all relevant files/dirs and x is set. Does anyone have any snippets of info - what would usually cause this message to occur? Is there some hidden gem that I could check out?

thanks
Maria.
9 REPLIES 9
Tom Geudens
Honored Contributor

Re: Execute permission denied

Hi,
What software ?
Are you executing as a particular user ? Is this the user that owns the software ? Can you post the ll -d listing of the top directory of the software ?

Sorry there's so many questions, but since you don't mention any other execution problems (you could try to make a little script yourself and see if that user can execute it) it must be software-related.

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
S.K. Chan
Honored Contributor

Re: Execute permission denied

I can think of 4 reasons for this error ..
1) Files or directories permission not set correctly (including SUID if applicable)
2) Files or directories ownership not set correctly.
3) The executables/programs are not compatible with the hardware.
4) Environment variable PATH is not setup in the right order of path.
It would help if you provide more details.
Steve Steel
Honored Contributor

Re: Execute permission denied

Hi


1)file software
file /stand/vmunix

Are the results compatible.

2)Is the disc used NFS mounted or somesuch.

Check permissions on mountpoint.


Most likely is software compiled on a non compatible hardware


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Gnananandhan
Frequent Advisor

Re: Execute permission denied

check for the permission and ownerships for the directory were your executables resides.

Regards,
Gnana A.
If there is a better way to do it, find it !
Ceesjan van Hattum
Esteemed Contributor

Re: Execute permission denied

Assuming you have check not only filepermissions, but also directory permissions..:

Are there some files which should be binaries, but are downloaded as asci (by ftp or so)...: do 'file [files]'.

Regards,
Ceesjan
Peter Gillis
Super Advisor

Re: Execute permission denied

Hi, Thankyou for all your replies. Here is some of the info requested: Software is CA-Jobtrac Agent for UNIX. owner=root, and i am tring to start the s/w as root. ll -d listing of top directory is attached.
I have issued file /stand/vmunix (PA-RISC1.1 executable - not stripped. file on some of the key files in the ca s/w show : PA-RISC 2.0 shared executable dynamically linked; commands text. So what is the difference between PA-RISC1.1 and PA-RISC2.0? (I know I am showing ignorance here but..)
files are not nfs mounted.

Thanks again for all your info.
Maria
A. Clay Stephenson
Acclaimed Contributor

Re: Execute permission denied

Sorry Maria, your D220 dog won't hunt. The code you have won't run on your D-box. Your D220 has a PA7300LC processor and you need at least a D270/D370 with a PA8000 processor to execute the code. You might see if your vendor has a version compiled with the +DAportable option. That will run on essentially all platforms. In essense, your programs are trying to use instructions that your CPU does not understand.

Regards, Clay
If it ain't broke, I can fix that.
Peter Gillis
Super Advisor

Re: Execute permission denied

Thanks Clay - What was it in the info I gave that pointed to this result. Hopefully I will be able to pick this up myself next time!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Execute permission denied

Actually, I just stumbled across this thread at the right moment. As soon as I saw your 'file' command output and saw that you were a D220, I knew what the problem was.

What really happens is that as soon as the OS attempts to fork() and exec() this code, it notices that the 'magic' number is wrong and exits. 'Magic number', as well as 'Magic Cookie', are real technical UNIX terms.

If it ain't broke, I can fix that.