AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Operatingsystems
#Servers
#AIX
#AIX
#AIX
#AIX
#AppPerformanceManagement
 View Only
  • 1.  ls: 0403-006 Execute permission denied.

    Posted Wed January 13, 2010 10:51 AM

    Originally posted by: stre


    I have a script that runs 'ls':

    INSTEMPDIRLIST=$( ls "$GTEMPDIR" | grep nixstandard )

    which expands to

    INSTEMPDIRLIST=$( ls "/patrol/emsinstaller" | grep nixstandard )

    and returns

    ls: 0403-006 Execute permission denied.

    The script also calls tar, and that also returns 'Execute persmission denied'. When I run either command using the same shell as the script, /bin/ksh, I'm unable to reproduce the problem. This issue has occurred on 3 of 3 systems that have just been upgraded from AIX 5.3 to 6.1. The problem didn't occur on AIX 5.3, and hasn't occurred on fresh installs of 6.1.

    What we've tried:
    INSTEMPDIRLIST=` ls "$GTEMPDIR" | grep nixstandard `
    INSTEMPDIRLIST=$( /usr/bin/ls "$GTEMPDIR" | grep nixstandard )
    Verified the user is really the one we expect that this point in the script.
    The same problem happens when running "ls /" on the previous line.

    Any suggestions greatly appreciated,
    #AIX-Forum


  • 2.  Re: ls: 0403-006 Execute permission denied.

    Posted Wed January 13, 2010 11:30 AM

    Originally posted by: stre


    I've narrowed the problem to this for loop:

    SPRINSTALLLIST=nixstandard.tar
    GEOP=''
    echo TEST
    ls
    for GIMGARCHIVE in `echo $GEOP "$SPRINSTALLLIST"`
    do
    echo TEST1
    ls
    if ; then
    echo LPINSTALL
    fi
    done

    The first 'ls' runs fine, the second produces the error.
    #AIX-Forum


  • 3.  Re: ls: 0403-006 Execute permission denied.

    Posted Wed January 13, 2010 01:47 PM

    Originally posted by: stre


    I've simplified

    for GIMGARCHIVE in `echo $GEOP "$SPRINSTALLLIST"`

    to

    for GIMGARCHIVE in $SPRINSTALLLIST

    For this script, this worked around the problem. Another, vendor provided script, exhibits the same problem, but the victim is 'date'. I suspect there's something in the user's environment that changed with the upgrade from 5.3 to 6.1.
    #AIX-Forum


  • 4.  Re: ls: 0403-006 Execute permission denied.

    Posted Wed January 13, 2010 02:38 PM

    Originally posted by: stre


    My admins finally mentioned that IBM has told them there's an issue with some system parameters from 5.3 hanging around after the upgrade to 6.1 that cause this problem. They provided a workaround, or two that worked for me.
    #AIX-Forum


  • 5.  Re: ls: 0403-006 Execute permission denied.

    Posted Fri February 12, 2010 09:39 AM

    Originally posted by: capeme


    can you share what IBM support had you guys do?
    #AIX-Forum


  • 6.  Re: ls: 0403-006 Execute permission denied.

    Posted Fri February 12, 2010 12:51 PM

    Originally posted by: shargus


    We've seen the same problem after we installed the latest 6.1 fixpack.

    Doing an "ls" gives execute permission denied.

    BUT - if you do a "ksh" (which opens a new shell on top of the existing one), the "ls" works fine.

    We never could figure it out. We ended up re-installing the OS and it worked.
    #AIX-Forum


  • 7.  Re: ls: 0403-006 Execute permission denied.

    Posted Thu April 22, 2010 09:54 AM

    Originally posted by: Zinnid


    Recreate the problem and then issue 'setkst' (without any flags). If after doing this, you can run ls again with any trouble, you'll have to install the following fix: http://www-01.ibm.com/support/docview.wss?uid=isg1IZ67997

    
    Problem conclusion   During downloading the kernel security table 
    
    for setkst, check the privcmds table version and 
    
    if its an older, convert into 
    
    new format.
    

    Kind regards,
    Damian.
    #AIX-Forum