Operating System - HP-UX
1825734 Members
2574 Online
109687 Solutions
New Discussion

Re: Execute permission denied.

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Execute permission denied.

Hello,

I'm trying to execute brconnect file with sapsid or root users on HP-UX B:11.11 but I can't:

# brconnect
sh: brconnect: Execute permission denied.
# ll -d brconnect
-rwsrwxr-x 1 oraspm sapsys 4096624 Aug 23 2005 brconnect
# file brconnect
brconnect: ELF-64 executable object file
#

Do you have any idea what's happening? I thougth root user was able to execute any file!

Thanks in advance for your help.
Regards,

Carles
15 REPLIES 15
Steven E. Protter
Exalted Contributor
Solution

Re: Execute permission denied.

Shalom Carles,

Yes, I know.

ELF-64 executable object file

That file format is not executable on HP-UX 11.11, which is a PA-RISC only release.

Wherever you got brconnect, you need a PA-RISC 2.0 or 1.1 version to run it on HP-UX 11.11

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jaime Bolanos Rojas.
Honored Contributor

Re: Execute permission denied.

Carles, try this, to see if it's going to work like that:

./brconnect


regards,

Jaime.
Work hard when the need comes out.
Darrel Louis
Honored Contributor

Re: Execute permission denied.

Hi Carles,

You're correct that root should be able to execute everything:

Test the following:

# which brconnect
and
# ./brconnect

Darrel
Jaime Bolanos Rojas.
Honored Contributor

Re: Execute permission denied.

Other thing you could try is use chmod to remove the S bit from the file, have seen some weird behavior with elf-64 objects and the s bit set.

Jaime.
Work hard when the need comes out.
Darrel Louis
Honored Contributor

Re: Execute permission denied.

Sorry, I've missed the ELF-64 executable, see following thread:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=947688

Darrel
Arunvijai_4
Honored Contributor

Re: Execute permission denied.

Hi Carles,

It will not run. You are trying to run a 64 bit object in a 32 bit HP-UXhardware.

Try the following,

# getconf KERNEL_BITS

# getconf HW_CPU_SUPP_BITS

-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.

Hi all again,

CPU version is CPU Version: PA 8600 CPU Module 3.1, so it's PA-RISC 2.0 and it should be able to execute it.

About ./brconnect, remove S permission and other "standard" solutions, they don't allow execute file.

Thanks and regards,

Carles
Carles Viaplana
Valued Contributor

Re: Execute permission denied.

Hello again,

Here you're output:

# getconf KERNEL_BITS
64
# getconf HW_CPU_SUPP_BITS
64
#

Regards,

Carles
Arunvijai_4
Honored Contributor

Re: Execute permission denied.

Yes, It should be a IPF executable. You can't execute in PA/.

-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.

Hello Darrel,

Where jRLA file should be?
Regards,

Carles
Jaime Bolanos Rojas.
Honored Contributor

Re: Execute permission denied.

Carles, did you compiled the code yourself?

If so please post the line that you used to compile the program.

Jaime.
Work hard when the need comes out.
Darrel Louis
Honored Contributor

Re: Execute permission denied.

Hi,

Have you tried the 64-bit version for brconnect.


http://www.jbase.co.za/knowledgebase/manuals/3.0/30manpages/man/sup22_JRLA.htm

jRLA is an acronym for jBASE Record Lock Arbiter. The lock arbiter is responsible for resolving all record locking conflicts for jBASE processes. It runs in the background on your system and is commonly referred to as the lock daemon.

If jRLA is not loaded, jBASE will use the normal UNIX system locks. This is acceptable for small user populations, but the UNIX locking mechanism has limits on the number of locks available, and on performance.

Darrel
Carles Viaplana
Valued Contributor

Re: Execute permission denied.

Hello,

I don't compile code by myself.

I clone system1 completelly to system2 using ignite backup and data protector for all filesystems not mounted in vg00 and this command doesn't work in system2.

System1 and system2 are on same server model, so they shouldn't be HW incompatibilities.

Thanks in advance for your help.
Regards,

Carles
Steven E. Protter
Exalted Contributor

Re: Execute permission denied.

Carles,

I don't understand how Ignite cloning could be responsible for this.

If the brconnect worked on the template system, it should work on the copied system. You can't clone PA-RISC to IA64 or vice versa.

So I must conclude brconnect was not cloned or does not work on the original template system.

Its really a simple issue. Programs compiled for ELF-64 as in 64 bit Intel Systems will not, ever run on a PA-RISC system, no matter what you try. If you want brconnect to work, get a PA-RISC version.

Good Luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Carles Viaplana
Valued Contributor

Re: Execute permission denied.

Hello Steven,

I spoke with SAP engineer who needs brconnect file and he downloaded it from SAP site.

I checked version with him and he really download file for PA-RISC 64 bits.

About ignite, I just told to you for your information. I don't believe it's main cause but it confirm this file could work on this kind of systems.

Thanks for your help.
Regards,

Carles