Sudoers Installation in AIX | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Sudoers Installation in AIX

AIX


Tags
aix, aix sudoers, sodoers, sudo

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-25-2010
Sounddappan Sounddappan is offline
Registered User
 
Join Date: May 2010
Last Activity: 12 July 2012, 7:15 AM EDT
Location: Mother Earth
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Sudoers Installation in AIX

1. Download the rpm file needed to install the sudoers package in AIX
AIX open sources rpms
Search for the file sudo-1.6.7p5-3.aix5.1.ppc.rpm and download it
2. Copy the downloaded file to the AIX servers /tmp/SUDO directory
3. change the permission to chmod 777 <Filename>
4.smitty install-> Install and Update Software-> Install Software-->INPUT device / directory for software [.]#current directory
SOFTWARE to install (Press Esc+F4 which displays the rpm file in the directory)
ACCEPT new license agreements? Yes
and press enter to install the rpm File on your machine
5. Configuring logs for Sudo

Code:
vi /etc/sudoers
place an entry @ the end of the file
Defaults log_year,logfile=/var/log/sudo.log
SUDOERS FILE SAMPLE
# visudo
------------------------------------------------------------------------------------------
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
sound ALL=(ALL) ALL
uday ALL=(ALL) ALL
sandeep ALL=(ALL) ALL
neha ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Defaults log_year,logfile=/var/log/sudo.log
#Defaults syslog=auth

----------------------------------------------------------------------------------------------------
6.Enter visudo command to view and putting an entry of the users in the /etc/sudoers quit it by saving it.
7. Login into the userlogin by opening a duplicate session of su <user name> and enter sudo -s for sudo -s login credentials.
8. Finally check the log file

Code:
# more /var/log/sudo.log
May 14 18:37:20 2010 : sound1 : TTY=pts/1 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 14 18:50:06 2010 : uday : TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/bin/bsh
May 14 19:23:34 2010 : sound1 : TTY=pts/3 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:23:05 2010 : sound1 : TTY=pts/2 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:27:56 2010 : neha : TTY=pts/2 ; PWD=/home/neha ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:30:45 2010 : neha : TTY=pts/2 ; PWD=/home/neha ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:31:49 2010 : sandeep : TTY=pts/2 ; PWD=/home/sandeep ; USER=root ; COMMAND=/usr/bin/ksh

This is the way to use the sudoers in AIX.

Last edited by pludi; 05-25-2010 at 07:33 AM.. Reason: added code tags, removed self-promotion
Sponsored Links
    #2  
Old 05-25-2010
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 28 July 2014, 3:28 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,124
Thanks: 43
Thanked 770 Times in 606 Posts
Between step 3 and 4: change to the directory "/tmp/SUDO" and run the command


Code:
inutoc .

This will create the file ".toc" in the directory, which is used as information base about the packages in this directory.

bakunin
Sponsored Links
    #3  
Old 05-25-2010
Sounddappan Sounddappan is offline
Registered User
 
Join Date: May 2010
Last Activity: 12 July 2012, 7:15 AM EDT
Location: Mother Earth
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
inutoc is not necessary.. As I have not done that.
    #4  
Old 05-26-2010
shiniraz shiniraz is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 7 October 2012, 8:49 PM EDT
Location: Kuala Lumpur
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Is the sudo rpm compatible with all AIX versions? ie AIX 5.3 & 6.1 ?

Thanks
Sponsored Links
    #5  
Old 05-26-2010
Sounddappan Sounddappan is offline
Registered User
 
Join Date: May 2010
Last Activity: 12 July 2012, 7:15 AM EDT
Location: Mother Earth
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Sudoers Installation in AIX

yes its compatible with the versions you asked for.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudoers file noam128 UNIX for Advanced & Expert Users 2 03-24-2010 10:25 AM
sudoers tjmannonline UNIX for Dummies Questions & Answers 5 06-13-2009 04:12 AM
sudoers syntax chuckuykendall UNIX for Advanced & Expert Users 2 04-28-2009 03:28 AM
sudoers on HP 11.11 dhlopomo UNIX for Dummies Questions & Answers 2 01-18-2008 05:03 AM
sudoers file whatisthis Linux 4 12-02-2004 04:59 PM



All times are GMT -4. The time now is 04:29 PM.