Topic
  • 8 replies
  • Latest Post - ‏2013-10-24T10:02:52Z by vbalaji11
vbalaji11
vbalaji11
21 Posts

Pinned topic AIX | 0403-006 execute permission denied

‏2013-10-16T07:52:35Z |

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 : ) ..

Updated on 2013-10-16T07:54:22Z at 2013-10-16T07:54:22Z by vbalaji11
  • GarlandJoseph
    GarlandJoseph
    167 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-16T15:37:24Z  

    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.

  • vbalaji11
    vbalaji11
    21 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-17T06:24:39Z  

    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.

     

    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

  • BalaAix
    BalaAix
    1 Post

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-17T11:12:16Z  
    • vbalaji11
    • ‏2013-10-17T06:24:39Z

     

    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

    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

     

     

  • vbalaji11
    vbalaji11
    21 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-18T05:08:41Z  
    • BalaAix
    • ‏2013-10-17T11:12:16Z

    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

     

     

    Dear Bala,

     

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

    :)

  • MattDulson
    MattDulson
    7 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-18T14:18:53Z  
    • vbalaji11
    • ‏2013-10-18T05:08:41Z

    Dear Bala,

     

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

    :)

    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"

     

  • vbalaji11
    vbalaji11
    21 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-23T08:47:53Z  

    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"

     

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

  • Wouter Liefting
    Wouter Liefting
    129 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-23T16:12:25Z  
    • vbalaji11
    • ‏2013-10-23T08:47:53Z

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

    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.

  • vbalaji11
    vbalaji11
    21 Posts

    Re: AIX | 0403-006 execute permission denied

    ‏2013-10-24T10:02:52Z  

    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.

    Thanks Wouter,

    Your answer added more clarification.