Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  need RPMs for sudo AIX 7.2

    Posted Thu January 17, 2019 04:39 PM

    Originally posted by: cculbreath1011


    I had recently performed a restore for a new AIX 7.2 lpar using a AIX 7.2 GOLD mksysb.  One of my DBA colleague was trying to login as oracle with a password using:  sudo su - orracle and received the following error:

    Cindy,

     

    Here is what I'm getting:

     

    $ hostname

    ham-dev-db40

    $ id

    uid=260(agottsch) gid=0(system) groups=1(staff)

    $ sudo su - oracle

     

    We trust you have received the usual lecture from the local System

    Administrator. It usually boils down to these three things:

     

        #1) Respect the privacy of others.

        #2) Think before you type.

        #3) With great power comes great responsibility.

     

    Password:

    Sorry, try again.

    Password:

    sudo: 1 incorrect password attempt

    $

     

    Thanks.

    Al

    Sent: Wednesday, January 16, 2019 3:18 PM

    Subject: RE: sudoers issue on ham-dev-db40/2

     

    What error code are you getting?

     

    Sent: Wednesday, January 16, 2019 1:25 PM
    Subject: sudoers issue on ham-dev-db40/2

     

    Cindy and Dan,

     

    Please work with Al on ham-dev-db40 and ham-dev-db42.

    Despite the fact that his ID is in the sudoers file, he is unable to run "sudo su - oracle" on either host.

    The /var/adm/auth simply shows that he is entering a bad password which makes no sense as he is able to login with the same password.

    I started looking at ham-dev-db40 and had the same issue when running that command as srichter.

    It might be an easy fix in the sudoers file but I suspect something else is going on.

     

    Please investigate and do a deep dive.

    Thanks all

    Steve 

     

    I discovered from the GOLD image it carried over an older RPM version for sudo:

    ham-dev-db40:/root /> rpm -qa sudo
    sudo-1.8.15-2noldap.ppc   <======

     

    I am suspecting I need to download the latest sudo version for AIX 7.2 and their dependencies.  I did download the latest sudo to my home directory.  Now, I am having issues with downloading two of the dependencies:

     

    ham-dev-db40:/home/cculbreath /> rpm -ivh sudo-1.8.20p2-4.aix6.1.ppc.rpm

    error: Failed dependencies:

            openldap >= 2.4.40-2 is needed by sudo-1.8.20p2-4.ppc

            gettext >= 0.19.7-1 is needed by sudo-1.8.20p2-4.ppc

            liblber.a(liblber-2.4.so.2) is needed by sudo-1.8.20p2-4.ppc

            libldap.a(libldap-2.4.so.2) is needed by sudo-1.8.20p2-4.ppc

     

     

    So far, I was able to download for gettext but I am having a difficult time trying to find and download the following:

     

    liblber.a(liblber-2.4.so.2) is needed by sudo-1.8.20p2-4.ppc

    libldap.a(libldap-2.4.so.2) is needed by sudo-1.8.20p2-4.ppc

     

    Could someone in this forum please direct me where I can find and download those two files above; as well as for openldap?  I really appreciate any help anyone can provide.

     

    Thank you.

    Cynthia

    (609) 292-7982 (office)

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: need RPMs for sudo AIX 7.2

    Posted Fri January 18, 2019 01:52 AM

    Originally posted by: AyappanP


    AIX Toolbox web link --> https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html

    ftp link --> ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/

    Those two libraries are getting shipped with openldap rpm.

    I suggest you to use yum, otherwise you will have to manually figure out the dependencies for openldap.

    Go through this document on how to configure yum in AIX --> https://developer.ibm.com/articles/configure-yum-on-aix/


    #AIX-Open-Source-Software
    #AIXOpenSource