Originally posted by: AyappanP
I just did a small testing to verify the problem. But it is working for me. The /etc/sudoers is not overwritten.
Downloaded the same sudo-1.7.0-1 rpm from perzl site and installed it. Edited the /etc/sudoers and then installed AIX Toolbox sudo-1.8.20p2-4 rpm. It actually created a new file .rpmnew and the older sudoers file is not touched.
# rpm -ivh sudo-1.7.0-1.aix5.1.ppc.rpm
Preparing... ########################################### [100%]
1:sudo ########################################### [100%]
(0) root @ aixoss-automation-3: 6.1.0.0: /
# rpm -qi sudo
Name : sudo
Version : 1.7.0
Release : 1
Architecture: ppc
Install Date: Wed Jan 24 20:40:18 IST 2018
Group : Applications/System
Size : 714684
License : BSD
Signature : (none)
Source RPM : sudo-1.7.0-1.src.rpm
Build Date : Mon Dec 22 21:59:32 IST 2008
Build Host : aix51.perzl.org
Relocations : (not relocatable)
URL : http://www.courtesan.com/sudo/
Summary : Allows restricted root access for specified users
Description :
Sudo (superuser do) allows a system administrator to give certain
users (or groups of users) the ability to run some (or all) commands
as root while logging all commands and arguments. Sudo operates on a
per-command basis. It is not a replacement for the shell. Features
include: the ability to restrict what commands a user may run on a
per-host basis, copious logging of each command (providing a clear
audit trail of who did what), a configurable timeout of the sudo
command, and the ability to use the same configuration file (sudoers)
on many different machines.
(0) root @ aixoss-automation-3: 6.1.0.0: /
# echo Hello >> /etc/sudoers
(0) root @ aixoss-automation-3: 6.1.0.0: /
# rpm -Uvh sudo-1.8.20p2-4.aix6.1.ppc.rpm
Preparing... ########################################### [100%]
1:sudo warning: /etc/sudoers created as /etc/sudoers.rpmnew
########################################### [100%]