IBM Support

PASE Command Fails to Execute, 0403-006 Execute Permission Denied

Troubleshooting


Problem

PASE command fails to execute, 0403-006 Execute permission denied.

Symptom

The error message "0403-006 Execute permission denied." is returned when a command is executed in the PASE environment.

Environment

IBM i OS

Resolving The Problem

Executing common commands (like pwd or ls) in IBM i PASE Korn Unix shell with uppercase characters fails with
/QOpenSys/usr/bin/-sh: PWD: 0403-006 Execute permission denied" or "/QOpenSys/usr/bin/-sh: LS: 0403-006 Execute permission denied
Other shells return slightly different results:
 > ksh -c 'PWD'
   ksh: PWD: 0403-006 Execute permission denied.
   $
 > csh -c 'PWD'
   /usr/bin/PWD: The file access permissions do not allow the specified action..
   $
 > bsh -c 'PWD'
   bsh: PWD: 0402-021 Cannot run the command as specified.
   $
 > qsh -c 'PWD'
   /QOpenSys/home/
   $

If the command is entered as lowercase, it executes successfully.
If the PWD or LS command is entered into QSHELL command line as uppercase or lowercase, it is executed successfully.
Why is PASE Korn shell behaving differently from QSHELL shell?

A mix-cased command that can be found in the noncase-sensitive directory /usr/bin/ (such as /usr/bin/PWD) returns Execute permission denied because the IFS finds the /usr/bin/pwd command when it is looking for the /usr/bin/PWD command. Alternatively, attempting to execute a Qshell program like /usr/bin/pwd in PASE also returns the execute permission denied message.

The which command can be helpful since it shows us the underlying IFS path to the command being executed:
 
> which PWD
/usr/bin/PWD
$
> which pwd
/QOpenSys/usr/bin/pwd
$

If this information does not help you determine the cause for why PASE is returning the "0403-006 Execute permission denied" message, further problem determination of the command (script) must be done by using the guidelines in the IBM Developer Works link:

http://www.ibm.com/developerworks/aix/library/au-unixerrors/index.html

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CJRAA2","label":"PASE"},{"code":"a8m0z0000000CJRAA2","label":"PASE"},{"code":"a8m0z0000000CJRAA2","label":"PASE"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

556588479

Document Information

Modified date:
09 February 2023

UID

nas8N1012365