Table of Contents
Sudo Installation Using RPM files
Download the RPM files
The source of sudo is available from http://gnome.bullfreeware.com/aixtoolbox/RPMS/ppc/sudo/. The current stable version of sudo for AIX versions 5.3 and 6.1 is V1.7.0-2. The source code is provided as a compressed rpm file called sudo-1.7.0-2.aix6.1.ppc.rpm and sudo-1.7.0-2.aix5.3.ppc.rpm. Download this file to a temporary directory, such as /tmp.
I have placed a copy of the rpm files on the nim server B004nim in /export/dsl/freeware/sudo/aix*_*/sudo-1.7.0-2.aix6.1.ppc.rpm you can copy the file to the relevant machine using scp command.
For AIX 5.3
# scp b004nim:/export/dsl/freeware/sudo/aix5_3/sudo-1.7.0-2.aix5.3.ppc.rpm /tmp/sudo-1.7.0-2.aix5.3.ppc.rpm
For AIX 6.1
# scp b004nim:/export/dsl/freeware/sudo/aix6_1/sudo-1.7.0-2.aix6.1.ppc.rpm /tmp/sudo-1.7.0-2.aix6.1.ppc.rpm
To ascertain which version of AIX the server is on do
oslevel -r
Prepare and install the RPM package file
Rpm is a package manager so the installation of sudo is alittle more simplified.
The following example is an installation on AIX 6.1, for installation of sudo on AIX 5.3 the difference will be the rpm file only.
Log in as root, make a directory at a convenient point in the file system to hold the source code and copy the source into this directory. For example:
# mkdir -p /opt/source/sudo # cd /opt/source/sudo # cp /tmp/sudo-1.7.0-2.aix6.1.ppc.rpm .
Then install the package using the rpm command with the flags -i (install) -v (verbose) and -h (gives progress in onscreen hasses):
# rpm -ivh sudo-1.7.0-2.aix6.1.ppc.rpm
It's advisable to log out and log in again at this point to activate these changes. Make sure that the system can find the sudo program:
# which sudo /usr/bin/sudo
And you can also check the version, thus proving it works as follows:
# sudo -V
A sudo manual page can be found here: http://www.gratisoft.us/sudo/man/sudo.html
Creating Sudo.log and Permissions
Create the logfile
# touch /var/log/sudo.log
# chmod 740 /var/log/sudo.log
Finally add the server to the servers list on b004nim so next time a refresh of sudoers is made it populates the new installed server as well.
# vi /export/dsl/freeware/sudo/script/sudo_servers.all
# scp b004nim:/export/dsl/freeware/sudo/sudoers_arch/sudoers_current /etc/sudoers