AIX Open Source

 View Only
  • 1.  Sudo Issue.

    Posted Wed October 11, 2023 06:17 AM

    Hi Mates,

    We have request to configure ssh_key on some of the server with NOPASSWD. And a device will interact to destination server with user ID and run few commands to fetch the required data.

    Command is : /usr/bin/su  or /usr/bin/su -c env or /usr/bin/su - -c env

    Soon, we run this command from device user ID, it will ask for root password. Though I have updated the sudo file, for not asking for root password. Could anyone help me an urgent please.

    Sudo File :

    cat Device42_ssh

    # Run as sudo

    Cmnd_Alias DEVICE42_CRONTAB = /usr/bin/crontab -u * -l, /bin/ls /var/spool/cron/crontabs, /bin/ls /var/spool/cron

    # sudo, next non-sudo

    Cmnd_Alias DEVICE42_PORTS = /bin/netstat -a

    # OS specific services and packages.

    Cmnd_Alias DEVICE42_OSCMD = /usr/sbin/lsof, /usr/sbin/format, /usr/bin/lslpp -l, /usr/bin/adb, /usr/sbin/exportfs, /usr/bin/echo, /usr/bin/grep, /usr/bin/showmount, /usr/bin/su - -c env

    # non sudo, then sudo

    Cmnd_Alias DEVICE42_SERVICES = /usr/bin/find /etc/init.d -perm *, /usr/bin/find /etc/rc.d/rc -perm *

    # Always sudo

    msadmtst ALL=(ALL) NOPASSWD: DEVICE42_DMIDECODE, DEVICE42_CRONTAB, DEVICE42_PORTS, DEVICE42_OSCMD, DEVICE42_SERVICES, /usr/bin/su



    ------------------------------
    Sreenath Kambly
    ------------------------------


  • 2.  RE: Sudo Issue.

    Posted Fri May 24, 2024 09:57 AM

    Hi Team,

        After i install gtk2 package from AIX too box, i am unable to sudo from any users. having the below error. Kindly help to resolve the issue.

    bash-4.4$ sudo su -
    exec(): 0509-036 Cannot load program sudo because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/libexec/sudo/libsudo_util.a(libsudo_util.so.0) because:
    0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 130) is not exported from
    dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
    0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 131) is not exported from
    dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.



    ------------------------------
    Manikandan Govindarasu
    ------------------------------



  • 3.  RE: Sudo Issue.

    Posted Sat May 25, 2024 08:51 AM

    Hi Manikandan,

    Can you let us know how you have installed gtk2 ?

    Also, let us know the output of "rpm -qa"



    ------------------------------
    SANGAMESH
    ------------------------------



  • 4.  RE: Sudo Issue.

    Posted Sat May 25, 2024 12:57 PM

    Can you let us know how you have installed gtk2 ?

    GTK2 using the .tar file

    Also, let us know the output of "rpm -qa"

    SGCBSCLIKAPP001:/:>rpm -qa

    libtasn1-4.19.0-1.ppc

    cyrus-sasl-2.1.28-1.ppc

    libgomp10-10.3.0-6.ppc

    libtextstyle-0.21-2.ppc

    libunistring-0.9.10-1.ppc

    p11-kit-tools-0.24.1-1.ppc

    wget-1.21.4-1.ppc

    libssh2-1.10.0-2.ppc

    curl-8.4.0-1.ppc

    readline-8.2-1.ppc

    grep-3.7-2.ppc

    zip-3.0-4.ppc

    libgcc-6.3.0-1.ppc

    zlib-1.2.11-1.ppc

    libffi-3.2.1-2.ppc

    glib2-2.56.1-2.ppc

    gmp-6.1.2-1.ppc

    libmpc-1.0.3-1.ppc

    libjpeg-6b-7.ppc

    xz-libs-5.2.4-1.ppc

    shared-mime-info-1.6-2.ppc

    libXrender-0.9.8-2waixX11.ppc

    freetype2-2.8-1.ppc

    fontconfig-2.11.95-3.ppc

    cairo-1.14.6-2waixX11.ppc

    libXft-2.3.2-4waixX11.ppc

    gdk-pixbuf-2.35.1-2waixX11.ppc

    libgcc10-10.3.0-6.ppc

    db-5.3.28-1.ppc

    libnghttp2-1.55.1-1.ppc

    pcre2-10.40-1.ppc

    libstdc++10-10.3.0-6.ppc

    libgomp-10-2.ppc

    libiconv-1.17-1.ppc

    p11-kit-0.24.1-1.ppc

    ca-certificates-2023.2.60-2.ppc

    krb5-libs-1.20.1-1.ppc

    openldap-2.5.16-1.ppc

    bzip2-1.0.8-2.ppc

    pcre-8.44-2.ppc

    gzip-1.12-3.ppc

    sudo-1.9.13p2-2.ppc

    AIX-rpm-7.2.5.205-9.ppc

    libstdc++-6.3.0-1.ppc

    ncurses-6.1-2.ppc

    gettext-0.19.8.1-3.ppc

    bash-4.4-3.ppc

    info-6.4-1.ppc

    mpfr-3.1.2-3.ppc

    libpng-1.6.27-2.ppc

    libtiff-3.8.2-1.ppc

    libxml2-2.9.7-1.ppc

    atk-2.20.0-3.ppc

    pixman-0.34.0-1.ppc

    expat-2.2.4-1.ppc

    lzo-2.10-2.ppc

    harfbuzz-1.2.7-2.ppc

    pango-1.40.1-2waixX11.ppc

    gtk2-2.24.30-2waixX11.ppc

    SGCBSCLIKAPP001:/:>



    ------------------------------
    Manikandan Govindarasu
    ------------------------------