Operating System - HP-UX
1748069 Members
5618 Online
108758 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"