HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

execute permission denied

 
HP-UX User_1
Frequent Advisor

execute permission denied

swinstall failed whenever I installed any kernel related patches or product. below is the the error msg in the swagent.log

Generating module: krm...
Generating module: pfil...
Generating module: ipf...
Generating module: SEOS...
Compiling /stand/build/conf.c...
Generating module: emcp...
Generating module: emcpmpx...
Generating module: emcpcg...
Generating module: emcpsapi...
Generating module: emcpgpx...
Generating module: emcpgpx_dm...
Loading the kernel...
Generating kernel symbol table...
sh: /usr/bin/sh: Execute permission denied.
*** Error exit code 126

Stop.
make failure.
ERROR: The command "/usr/sbin/mk_kernel", which is used to rebuild
the kernel, has failed. Because kernel-related filesets were
installed, this command must be executed by "swinstall",
without failures, before the load can continue. Check the
above output for details about the failure.
NOTE: The Install Phase has suspended. Check the above output for
reasons.


* Aborting the Install Phase.


This is a critical situation for me. can anyone help?
9 REPLIES
Steven E. Protter
Exalted Contributor

Re: execute permission denied

Shalom,

Check actual existence and permissions of this file:

/usr/bin/sh

Did you perhaps change the root shell in /etc/passwd ? that is a big thing never to do.

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
HP-UX User_1
Frequent Advisor

Re: execute permission denied

The file exist and the permission on it is okay. cksum was good. The root shell in passwd is still /sbin/sh

tstbe1# /var/adm/sw>more /etc/passwd
root:Je4X1JV.CyFLs,O06U:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico

the command even failed if run from the prompt

tstbe1# />sh
sh: sh: Execute permission denied.
James R. Ferguson
Acclaimed Contributor

Re: execute permission denied

Hi:

# sh: /usr/bin/sh: Execute permission denied.

So what are the permissions for '/usr/bin/sh'?

They should look like:

# ls -l /usr/bin/sh
-r-xr-xr-x 2 bin bin 587360 Nov 14 2007 /usr/bin/sh

Regards!

...JRF...


HP-UX User_1
Frequent Advisor

Re: execute permission denied

tstbe1# />ls -l /usr/bin/sh
-r-xr-xr-x 2 bin bin 204800 Oct 21 2003 /usr/bin/sh
TTr
Honored Contributor

Re: execute permission denied

The /usr/bin/sh binary might not be a valid one. What is the output of the commands "file /usr/bin/sh" and "what /usr/bin/sh"
Michael Steele_2
Honored Contributor

Re: execute permission denied

Hi

126 Command invoked cannot execute Permission problem or command is not an executable

http://tldp.org/LDP/abs/html/exitcodes.html

Check another machine and note JRF's response. The byte counts totals are different.

Copy from another machine or reinstall.
Support Fatherhood - Stop Family Law

Re: execute permission denied

Are you on a PA or Integrity system?
TTr's suggestion of using file(1) may indicate you restored the wrong one on your system.

>Michael: The byte counts totals are different.

Well, that's because it could be an older OS version of patch level. And JRF said "like". :-)
HP-UX User_1
Frequent Advisor

Re: execute permission denied

The probelm is resolved.

The problem was due to the etrust application installed by the security group in my environment. Once the etrust daemon was stopped, everything as back to normal.
Thanks you all for your input.
HP-UX User_1
Frequent Advisor

Re: execute permission denied

See above