IBM Support

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



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


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



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'

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
> which 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:

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Programming (Languages- compilers- tools)","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Product":{"code":"SSC5L9","label":"IBM i 7.2"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSC52E","label":"IBM i 7.1"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSC3X7","label":"IBM i 6.1"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]

Historical Number


Document Information

Modified date:
04 March 2020