# yum remove sudo
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package sudo.ppc 0:1.9.5p2-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Removing:
sudo ppc 1.9.5p2-1 @AIX_Toolbox 17 M
Transaction Summary
=============================================================================================================================================================
Remove 1 Package
Installed size: 17 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
krb5-libs-1.16.1-5.ppc has missing requires of db >= ('0', '6.2.32', '1')
krb5-libs-1.16.1-5.ppc has missing requires of libdb6.a(libdb-6.2.so)
Erasing : sudo-1.9.5p2-1.ppc 1/1
warning: /etc/sudoers saved as /etc/sudoers.rpmsave
Removed:
sudo.ppc 0:1.9.5p2-1
Complete!
# yum install sudo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sudo.ppc 0:1.9.5p2-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
sudo ppc 1.9.5p2-1 AIX_Toolbox 4.2 M
Transaction Summary
=============================================================================================================================================================
Install 1 Package
Total download size: 4.2 M
Installed size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
sudo-1.9.5p2-1.aix6.1.ppc.rpm | 4.2 MB 00:00:01
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sudo-1.9.5p2-1.ppc 1/1
Installed:
sudo.ppc 0:1.9.5p2-1
Complete!
# sudo -V
Sudo version 1.9.5p2
Configure options: --prefix=/opt/freeware --sbindir=/opt/freeware/sbin --libdir=/opt/freeware/lib --mandir=/opt/freeware/man --libexecdir=/opt/freeware/libexec --with-logging=syslog --with-logfac=auth --with-pam --with-pam-login --with-env-editor --with-ignore-dot --with-aixauth --with-tty-tickets --with-ldap --with-ldap-conf-file=/opt/freeware/etc/openldap/ldap.conf
Thanks! I removed the sudo from my test server and re-install it back again and it worked! However I am not sure why does it even happen?
FYI--after installing yum, I have ran "yum install sudo" instead of "yum upgrade sudo" . Do you think this causes the issue? Since the sudo was already there in the system.
------------------------------
Sanket Mehta
------------------------------
Original Message:
Sent: Wed February 17, 2021 12:57 PM
From: SANKET RATHI
Subject: Installing new sudo 1.9.5p2 package on AIX OS
You can see sudo links are not correct. Something broke your system. The sudo symlinks are not proper.
Also I do not understand why cksum failed when ls is showing sudo_32
Anyway I would recommend to reinstall sudo package and see if links are getting corrected.
Also try running /opt/freeware/bin/sudo_32 this should work.
------------------------------
SANKET RATHI
Original Message:
Sent: Wed February 17, 2021 12:19 PM
From: Sanket Mehta
Subject: Installing new sudo 1.9.5p2 package on AIX OS
# ls -l /opt/freeware/bin/sudo
/opt/freeware/bin/sudo not found
# ls -l /opt/freeware/bin/sudo_32
---s--x--x 1 root system 169038 Jan 27 12:29 /opt/freeware/bin/sudo_32
# cksum /opt/freeware/bin/sudo_32
cksum: /opt/freeware/bin/sudo_32: No such file or directory
------------------------------
Sanket Mehta
Original Message:
Sent: Wed February 17, 2021 11:42 AM
From: SANKET RATHI
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Please send output of following commands
# ls -l /opt/freeware/bin/sudo
# ls -l /opt/freeware/bin/sudo_32
# cksum /opt/freeware/bin/sudo_32
------------------------------
SANKET RATHI
Original Message:
Sent: Wed February 17, 2021 11:34 AM
From: Sanket Mehta
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Hi Sanket,
Can you please here? What am I supposed to do?
# rpm -qa sudo
sudo-1.9.5p2-1.ppc
# which sudo
/usr/bin/sudo
# ls -al /usr/bin/sudo
lrwxrwxrwx 1 root system 27 Feb 9 15:35 /usr/bin/sudo -> ../../opt/freeware/bin/sudo
# sudo -V
ksh: sudo: cannot execute
I used to able to view the sudo version.
Currently no LIBPATH has been set. Please suggest on how to fix the error.
Thanks,
Sanket
------------------------------
Sanket Mehta
Original Message:
Sent: Tue February 16, 2021 03:58 PM
From: Sanket Mehta
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Ok so finally I am able to install sudo version as below however I am getting error when I check the version of the sudo.
# rpm -qa sudo
sudo-1.9.5p2-1.ppc
# which sudo
/usr/bin/sudo
# ls -al /usr/bin/sudo
lrwxrwxrwx 1 root system 27 Feb 9 15:35 /usr/bin/sudo -> ../../opt/freeware/bin/sudo
# sudo -V
ksh: sudo: cannot execute
I used to able to view the sudo version.
Currently no LIBPATH has been set. Please suggest on how to fix the error.
Thanks,
Sanket
------------------------------
Sanket Mehta
Original Message:
Sent: Thu February 11, 2021 02:29 AM
From: SANKET RATHI
Subject: Installing new sudo 1.9.5p2 package on AIX OS
sudo, sudo_ids and sudo_noldap are exclusive to each other only one package can be installed because they provide same files that would conflict.
So in your case if you want sudo_noldap then you will have to remove existing sudo from your system.
------------------------------
SANKET RATHI
Original Message:
Sent: Tue February 09, 2021 11:48 AM
From: Sanket Mehta
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Thanks for the info but I have tried the new version sudo_noldap and I am getting below error.
# rpm -Uvh --test sudo_noldap-1.9.5p2-1.aix6.1.ppc.rpm
error: failed dependencies:
gettext >= 0.19.8.1 is needed by sudo_noldap-1.9.5p2-1
zlib >= 1.2.11-1 is needed by sudo_noldap-1.9.5p2-1
sudo conflicts with sudo_noldap-1.9.5p2-1
sudo conflicts with sudo_noldap-1.9.5p2-1 ???How can I fix it? Any suggestions?
------------------------------
Sanket Mehta
Original Message:
Sent: Tue February 09, 2021 09:46 AM
From: SANKET RATHI
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Yes the sudo rpm package is built with ldap support and it needs openldap.
But now we have also published sudo_noldap rpm package that does not require openldap.
------------------------------
SANKET RATHI
Original Message:
Sent: Tue February 09, 2021 01:52 AM
From: Y Anz
Subject: Installing new sudo 1.9.5p2 package on AIX OS
I had same problem.
There was sudo- 1.8.15-1noldap .ppc in AIX Tool box. but there is newer one.
So I read INSTALL file in sudo.tar.gz 1.9.5p2, I found the bellow guide.
--with-ldap[=DIR]
Enable LDAP support. If specified, DIR is the base directory
containing the LDAP include and lib directories. Please see
README.LDAP for more information.
Was the newest sudo rpm file configured and build with --with-ldap option?
To configure and build without --with-ldap option personlly resolve this problem?
And will the newer sudo-noldap rpm be released forever?
------------------------------
YUTAKA ANZAI
Original Message:
Sent: Thu February 04, 2021 02:54 PM
From: Scott Roberts
Subject: Installing new sudo 1.9.5p2 package on AIX OS
Hi,
We are attempting to use new sudo package on our aix os version 7.2 sudo-1.9.5p2-1.aix6.1.ppc.rpm
Ran rpm to update the sudo.. got this..
rpm -Uvh sudo-1.9.5p2-1.aix6.1.ppc.rpm
error: Failed dependencies:
gettext >= 0.19.8.1 is needed by sudo-1.9.5p2-1.ppc
liblber.a(liblber-2.4.so.2) is needed by sudo-1.9.5p2-1.ppc
libldap.a(libldap-2.4.so.2) is needed by sudo-1.9.5p2-1.ppc
openldap >= 2.4.48-1 is needed by sudo-1.9.5p2-1.ppc
zlib >= 1.2.11-1 is needed by sudo-1.9.5p2-1.ppc
Went back to ibm aix tools for linux, downloaded all packages except liblber.a and libldap.a. Not sure where to find or is there another way of doing this maybe use nodep?
Thanks, Scott
------------------------------
Scott Roberts
------------------------------