AIX

AIX

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


#Power
#Power
 View Only
  • 1.  sudo issue 0509-036 Cannot load program visudo

    Posted 4 days ago

    Migrated VIO server from 3.1.4.50 to 4.1.1.0 and lost the sudo, 

    Installed the latest, but getting below issue, kindly help me to fix this issue on my VIO server. 

    # lslpp -l | grep -i sudo.*
      sudo.rte                  1.9.17.2  COMMITTED  Configurable super-user
      sudo.rte                  1.9.17.2  COMMITTED  Configurable super-user
    # ls -ld /etc/sudoers*
    -r--r-----    1 root     system         5062 Oct 28 19:56 /etc/sudoers
    drwxr-x---    2 root     system          256 Oct 29 17:51 /etc/sudoers.d
    -r--r-----    1 root     system         5062 Oct 29 17:51 /etc/sudoers.dist
    -r--r-----    1 root     system         5062 Oct 16 13:40 /etc/sudoers_28OCT25
    #
    # visudo
    exec(): 0509-036 Cannot load program visudo because of the following errors:
            0509-022 Cannot load module /opt/freeware/libexec/sudo/libsudo_util.a(libsudo_util.so.0).
            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.
            0509-022 Cannot load module libgcc_s.a(shr.o).
            0509-026 System error: A file or directory in the path name does not exist.
    #



    ------------------------------
    venkat v
    ------------------------------


  • 2.  RE: sudo issue 0509-036 Cannot load program visudo

    Posted 3 days ago

    Hi Venkat
    Looks like libgcc rpm is not installed. Please install the same using "dnf install libgcc".



    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 3.  RE: sudo issue 0509-036 Cannot load program visudo

    Posted 3 days ago

    hi

    try to install libgcc with force option 

    # rpm --ihv libgc....   --force



    ------------------------------
    Anas AlSaleh
    IBM Power Systems Software Specialist
    Saudi Business Machines ( SBM )
    Riyadh
    ------------------------------



  • 4.  RE: sudo issue 0509-036 Cannot load program visudo

    Posted 3 days ago

    Hi, Venkat

    Also, note that sudo.rte is not from the AIX Toolbox.
    Check the full path for sudo, and check its LIBPATH,  maybe the version you have is loading Toolbox libraries (?)



    ------------------------------
    Jan Harris
    AIX & Security Support Engineer | Escalations, KCS & Technical Writing
    Austin
    ------------------------------



  • 5.  RE: sudo issue 0509-036 Cannot load program visudo

    Posted 3 days ago

    When up upgrade from VIOS 3.1.x.x -> 4.1.x.x, it's not an in-place upgrade, it is a reinstall with a restoration of the VIO mapping configuration thus any additional tools, scripts etc that you have in your VIOs need to be reinstalled.

    I would recommend that you install open-source software on AIX/VIO using dnf.  This will make sure that all dependant software is also installed - you are missing a dependant library from your system.

    I recommend that you remove sudo.rte, install dnf, then install the sudo_noldap package using dnf.  Sudo has many dependencies that need to be installed along with it these days.

    Phill.



    ------------------------------
    Phill Rowbottom
    Unix Consultant
    Service Express
    Bedford
    ------------------------------



  • 6.  RE: sudo issue 0509-036 Cannot load program visudo

    Posted 3 days ago

    An LPP that depends on an RPM location is a bit strange.  Where did you get that LPP ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------