AIX

AIX

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

 View Only
Expand all | Collapse all

Unable to install SUDO on AIX

  • 1.  Unable to install SUDO on AIX

    Posted Tue October 15, 2024 08:07 AM

    Hello,

    I am trying to install sudo using .bff package on AIX with OS 7.2.

    But after installing the package( sudo.1.9.15.5.aix71.bff) I am not able to switch to root using "sudo su -"

    Facing below error:
    $ sudo su -
    Illegal instruction

    bash-4.2# visudo
    Illegal instruction (core dumped)

    It will be great if anyone help me to resolve the issue.

    Thank you.



    ------------------------------
    Anushka Hiray
    ------------------------------


  • 2.  RE: Unable to install SUDO on AIX

    Posted Tue October 15, 2024 11:39 AM

    Hello Anushka,

    Can you please try the below command and let me know if it works. 

    sudo su

    or

    sudo -i



    ------------------------------
    Rohit Chauhan
    Senior Technical Specialist
    Norway
    ------------------------------



  • 3.  RE: Unable to install SUDO on AIX

    Posted Wed October 16, 2024 02:11 AM

    Hello Rohit,

    I have tried the above commands :

    bash-4.2# sudo -i
    Illegal instruction (core dumped)
    bash-4.2# sudo su -
    Illegal instruction (core dumped)
    bash-4.2# sudo su
    Illegal instruction (core dumped)

    Thank you.



    ------------------------------
    Anushka Hiray
    ------------------------------



  • 4.  RE: Unable to install SUDO on AIX

    Posted Thu October 17, 2024 10:22 AM
      |   view attached

    Hi,

     

    If I may add a comment to this discussion.

     

    I'va had a lot of trouble with this same issue and installing SUDO from a RPM has been a nightmare with no success.

     

    I cannot say anything about a bff install but I found this lpp installion that I have been installing on POWER VMs.  Here is the specs of a PVM that accepts the LPP package.

    System Model: IBM,9105-42A

    Processor Type: PowerPC_POWER10

    Processor Implementation Mode: POWER 8

    Processor Version: PV_8_Compat

    Number Of Processors: 1

    Processor Clock Speed: 2750 MHz

    CPU Type: 64-bit

    Kernel Type: 64-bit

    Memory Size: 8192 MB

    Good Memory Size: 8192 MB

    Platform Firmware level: ML1030_065

    Firmware Version: IBM,FW1030.30 (ML1030_065)

    Console Login: enable

    Auto Restart: true

    Full Core: false

    NX Crypto Acceleration: Capable and Enabled

     

     

    I've been installing this LPP through Smitty without issues.  It is NOT the latest, but it works.  When I have a week free, I'll fight again trying to install from the RPM the latest version.

     

    I don't know if I'm allowed to share this.  If not, erase the file.

     

    Also, I don't know if this is compatible with POWER 5.

     

    Hope this helps.

     

    Good luck

     

    Marc Denis Simard

     

    Spécialiste en infrastructure / Infrastructure Specialist

    514-592-1791

     

    Notifications de vacances / Holiday alert :

     

    24 déc. 2025 –> 20 jan. 2025

     




    Attachment(s)

    I
    sudo.1.8.15.0.I   7.13 MB 1 version


  • 5.  RE: Unable to install SUDO on AIX

    Posted Wed October 16, 2024 04:38 AM

    "Illegal instruction" means most of the time that you use binary compiled for one POWER CPU generation on an older or on a not compatible POWER.

    Which server do you have? Where do you have your sudo from?



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 6.  RE: Unable to install SUDO on AIX

    Posted Wed October 16, 2024 07:39 AM

    Hello Andrey,

    Thank you for the insight. I am currently using a Power 5 machine running AIX 7.X. The sudo package I have installed is version 1.9.15.5. It appears that the package might not be compatible with this hardware. Do you have any recommendations for a version of Sudo that is compatible with Power 5, or any steps I should take to resolve the "Illegal instruction" error?



    ------------------------------
    Anushka Hiray
    ------------------------------



  • 7.  RE: Unable to install SUDO on AIX

    Posted Thu October 17, 2024 04:16 AM

    Hello Anushka,

    sorry, POWER5 is soooo old, that I can't even remember which compiler version supports or supported it. IBM promises binary compatibility and it means, that if program was compiled for POWER5 it would run on Power10 without any modifications, but not in other direction.

    I wouldn't recommend to take an older version of sudo which for sure was compiled for POWER5. Because older versions of sudo had security bugs which are fixed in newer versions.

    The only way which could work for you is to take the source code of sudo and compile it for your environment.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 8.  RE: Unable to install SUDO on AIX

    Posted Thu October 17, 2024 02:32 PM
    Edited by Damien LEMAGNEN Thu October 17, 2024 02:39 PM

    Hello,

    You can even try this old version that do not need dependencies :

    http://www.oss4aix.org/download/RPMS/sudo/sudo-1.6.9p23-1.aix5.1.ppc.rpm

    Regards.



    ------------------------------
    Damien LEMAGNEN
    AIX System Engineer/Architect
    NETIXWARE



  • 9.  RE: Unable to install SUDO on AIX

    Posted Fri October 18, 2024 12:53 PM

    Hello Damien,

    I have tested the package you provided on both AIX 6.X and 7.X, and it is working as expected.

    Before proceeding, I wanted to confirm whether the package and the source website (oss4aix) are trusted and safe for installation in a production environment?

    Is the site trusted and safe?

    Thank you.



    ------------------------------
    Anushka Hiray
    ------------------------------



  • 10.  RE: Unable to install SUDO on AIX

    Posted Fri October 18, 2024 01:03 PM

    oss4aix is Michael Perzl's site (https://www.linkedin.com/in/michael-perzl-8a69366a/).  It was the main source of OSS for AIX while the AIX opensource toolbox for AIX was unmaintained.  It's now mainly an archive for older versions.  The new versions are provided by the IBM AIX Toolbox for opensource.



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 11.  RE: Unable to install SUDO on AIX

    Posted Fri October 18, 2024 01:21 PM

    Hello Phill,

    Thank you so much for the information! I just wanted to confirm, can we use the .bff package for sudo as well?

    I've noticed that it installs the prerequisites automatically. I can see the stable releases from https://www.sudo.ws/releases/stable/ but wanted to double-check.



    ------------------------------
    Anushka Hiray
    ------------------------------



  • 12.  RE: Unable to install SUDO on AIX

    Posted Thu October 31, 2024 07:14 AM

    Hi Anushka,

    Where did you obtain the .bff from?  Was it bull freeware?  Unless you're using sudo from the IBM AIX opensource toolbox, it's probably an old out of date version.  If that's acceptable, then its up to you if you use it.

    Phill.



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 13.  RE: Unable to install SUDO on AIX

    Posted Fri November 01, 2024 02:02 PM

    You can install any file set that you have licensing for, if it is supported by the vendor to run on your platform.

    However, the AIX Open Source developers are not likely to be able to assist with any issues.

    However, you can visit the Sudo user group for more assistance.
    https://www.sudo.ws/mailman/listinfo/sudo-users



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin
    ------------------------------



  • 14.  RE: Unable to install SUDO on AIX

    Posted Fri October 18, 2024 04:44 AM

    Have you tried using sudo from the IBM AIX Tool box for opensource? 



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 15.  RE: Unable to install SUDO on AIX

    Posted Tue November 26, 2024 05:33 AM

    My response was crafted with AI assistance, tailored to provide detailed and actionable guidance for your query.

    The "Illegal instruction" error when using sudo on AIX usually indicates that the version of the sudo package is not compatible with your system or was improperly built for the specific architecture or AIX version.

    1. Verify Compatibility

    • Ensure the sudo package version (1.9.15.5) you downloaded is specifically compatible with AIX 7.2. The .bff file you mentioned is for AIX 7.1, so it may not fully support AIX 7.2.
    • Download the correct version of sudo for AIX 7.2 from IBM's AIX Toolbox or a trusted source.

    2. Check Processor Architecture

    • Verify your AIX system's architecture (e.g., POWER7, POWER8, POWER9) and ensure the downloaded package matches the processor type.
    • Run uname -p or prtconf | grep "Processor Type" to check your processor.

    3. Check Prerequisite Libraries

    • Some versions of sudo require additional dependencies, such as:
      • glibc
      • libiconv
    • Ensure you have the correct versions of these libraries installed. You can check installed packages with:
      sh
      lslpp -L | grep <package_name>
      If missing, download and install dependencies from the AIX Toolbox.

    4. Debug Core Dump

    • Use dbx to analyze the core dump and get more information about the issue:
      sh
      dbx /usr/bin/sudo core
    • Look for clues related to missing libraries


    ------------------------------
    Saif Ali Sabri
    ------------------------------



  • 16.  RE: Unable to install SUDO on AIX

    Posted Wed November 27, 2024 09:17 AM

    I solved this by configuring dnf. In my case, I did this locally. I mean, I configured dnf locally.

    To do so:

    1- Download the Toolbox package from ESS (https://www.ibm.com/servers/eserver/ess/landing/landing-page)

         - Choose "tgz" format. Unzip and extract fhe files. 

         - When you extract the files, you'l see like this (the files below are for AIX 7.2 and 7.3, but you have, also, for 7.1, 7.2 and 7.3)

    root@server]# ls -la
    total 16114168
    drwxr-xr-x   11 4000     4000           4096 Mar 14 2024  .
    drwxr-xr-x    9 bin      bin            4096 Nov 12 10:04 ..
    -rw-r--r--    1 4000     4000         290128 Mar 14 2024  CONTENTS.toolbox
    -rw-r-----    1 root     system   8250112000 Nov 12 10:06 ESD-Toolbox_for_Linux_Apps_Common_7.2-7.3_062024_LKT010327.tar
    drwxrwxr-x    2 4000     4000           4096 Mar 14 2024  LICENSES
    -rw-r--r--    1 4000     4000          36258 Mar 14 2024  README.toolbox
    drwxr-xr-x    9 4000     4000            256 Mar 14 2024  RPMS
    drwxr-xr-x    4 4000     4000            256 Mar 14 2024  RPMS.bygroup
    drwxrwxr-x    2 4000     4000            256 Mar 14 2024  SRPMS
    drwxrwxr-x    2 4000     4000            256 Mar 14 2024  contrib
    drwxrwxr-x    2 4000     4000            256 Mar 14 2024  docs
    drwxr-xr-x    3 4000     4000            256 Mar 14 2024  ezinstall
    drwxr-xr-x    4 4000     4000            256 Mar 14 2024  installp
    drwxr-xr-x    3 4000     4000            256 Mar 14 2024  usr

    2 - Run the dnf installer:

        - From the base directory (where you extract the files), run ./ezinstall/ppc/dnf_aixtoolbox_local.sh

        - This will install dnf and all pre-reques.

    3 - Run dnf update

         - From the command line run: dnf update

    Now you can install any package from Toolbox that is locally available.

    You can try:

    [root@server]# dnf list | grep sudo
    sudo_noldap.ppc                                   1.9.14p3-1       @Local_AIX_Toolbox      
    sudo.ppc                                          1.9.14p3-1       Local_AIX_Toolbox       
    sudo_ids.ppc                                      1.9.14p3-1       Local_AIX_Toolbox       
    [root@server]#

    You see three options for sudo. If you have just local authentication, you can choose sudo_noldap.ppc, for example.

    That it is



    ------------------------------
    Adalberto Giaretta
    ------------------------------