AIX

AIX

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

 View Only
Expand all | Collapse all

AIX | 0403-006 execute permission denied

  • 1.  AIX | 0403-006 execute permission denied

    Posted Wed October 16, 2013 03:53 AM

    Originally posted by: vbalaji11


    Hi all,

     

    I have been trying to install XAMPP 1.8.1 on AIX 7.

    Using gunzip and tar, I was able to extract them.

    In lampp/bin/, I could see all files related to mysql and other components under  " XAMPP " package.

     

    But, when I try to execute any of the files

    I am getting the following error

    ./mysql.server: /opt/lampp/bin/my_print_defaults: 0403-006 Execute permission denied.

     

    I execute commands as root & All the files are having 755 access permissions.

    Thanks in advance : ) ..



  • 2.  Re: AIX | 0403-006 execute permission denied

    Posted Wed October 16, 2013 11:37 AM

    Originally posted by: GarlandJoseph


    We need more context here.  What is a single command that you are running that results in this error? Is the "command" a binary executable or a script? What are the permissions of  mysql.server? What are the permissions of /opt/lampp/bin/my_print_defaults.  If these are scripts, try running with set -x and temporarily modify the scripts to include this verbose option so that you can see the actual execution line where "execute permission denied" happens.



  • 3.  Re: AIX | 0403-006 execute permission denied

    Posted Thu October 17, 2013 02:25 AM

    Originally posted by: vbalaji11


     

    Hi Garland,

    Thanks for your time and response.

    below are the files which I tried to run, along with their  file nature & results
     

    mysql.server      execute permission denied            link to a shell script

    mysql                  cannot execute binary file                ELF 32-bit LSB version 1 executable 80386

     

     

    lrwxrwxrwx   1 user1   staff          mysql.server -> ../share/mysql/mysql.server
    -rwxr-xr-x      1 user1   staff           ../share/mysql/mysql.server
    -rwxr-xr-x      1 root       system     /opt/lampp/bin/my_print_defaults

     

    my_print_defaults  ==  ELF 32-bit LSB version 1 executable 80386

    " If these are scripts, try running with set -x and temporarily modify the scripts to include this verbose option so that you can see the actual execution line where "execute permission denied" happens. "

    I am not familiar with set -x command. Could you also guide me as How I should modify the script file [ mysql.server / my_print_defaults ] to see where the error is actually happening.

    Thanks,

    Balaji V



  • 4.  Re: AIX | 0403-006 execute permission denied

    Posted Thu October 17, 2013 07:12 AM

    Originally posted by: BalaAix


    Hi,

    you can debug script using below command. .

    bash -x mysql.server

    It seems to be permission issue. Your script owner is user1 and my_print_defaults owner is root. So please change owner of mysql.server, /share/mysql/mysql.server owner to root

    chown -R rooot:system mysql.server

    chown -R rooot:system ./share/mysql/mysql.server

    Please let me know if his helps you.

    Regards,

    Balasaheb

     

     



  • 5.  Re: AIX | 0403-006 execute permission denied

    Posted Fri October 18, 2013 01:09 AM

    Originally posted by: vbalaji11


    Dear Bala,

     

    Thanks for your suggestion. I will try the same and get back soon this day.

    :)



  • 6.  Re: AIX | 0403-006 execute permission denied

    Posted Fri October 18, 2013 10:19 AM

    Originally posted by: MattDulson


    You might want to check that you've got the AIX version of the binaries.

    The description of the file you gave stated "ELF 32-bit LSB version 1 executable 80386"

    I would expect the output to say "executable (RISC System/6000) or object module"

     



  • 7.  Re: AIX | 0403-006 execute permission denied

    Posted Wed October 23, 2013 04:48 AM

    Originally posted by: vbalaji11


    Hi Matt,

     

    So is it likely that, my AIX doesnt know how to execute this particular type / kind of "ELF 32-bit LSB version 1 executable 80386" binary file.

    Actually, Xampp comes in flavours as here . I was giving a try, whether linux version would be working fine on AIX for a server and db, [ apache and mysql ].

    I couldnt really use xampp in aix, and went on with mysql and apache tomcat and working fine.

     

    I liked to know the real cause of the error. Thanks every one for you kind help :)



  • 8.  Re: AIX | 0403-006 execute permission denied

    Posted Wed October 23, 2013 12:12 PM

    Originally posted by: Wouter Liefting


    The file you're looking at is compiled for the 80386 architecture, and is in an ELF format for LSB version 1. ELF = Executable and Linkable Format, and LSB = Linux Standards Base.

    So all the individual machine instructions in there are for the 80386 (and higher) microprocessor, which is produced by Intel. Which is totally different from the individual machine instruction set available on IBMs Power architecture. Furthermore, even if you could run the binary on the Power platform, since the file conforms to a Linux standard for executables, it is pretty likely that AIX wouldn't know how to load and start the executable, how to determine which shared libraries are needed and so on.

    It's like trying to put a square peg in a round hole. it just isn't going to work. You might as well try and get Windows programs running on AIX.

    Anyway, I went over to the XAMPP website and they claim it's under the GPL. At least, the collection is, because individual components may be under other Open Source licences. This means that the scripts and everything you need to create an XAMPP distribution should be available in source code form. Which you can compile/run yourself under AIX, so that you can create your own installable XAMPP distribution. It won't be easy, but it's the only way to do things, other than convincing the XAMPP team to create and maintain an AIX distribution.

    Or you can simply download and install the individual components. Quite a few of them will already be available on the AIX Toolkit for Linux DVD.



  • 9.  Re: AIX | 0403-006 execute permission denied

    Posted Thu October 24, 2013 06:03 AM

    Originally posted by: vbalaji11


    Thanks Wouter,

    Your answer added more clarification.