View Single Post
  #1  
Old January 29th, 2010
dthacker's Avatar
dthacker Offline
Cat Herder and Penguin Wrangler
 
Join Date: June 2006
Location: Omaha, Nebraska USA
Posts: 99
Send a message via Yahoo to dthacker
Problems using sudo in AIX 5.3

I'm using sudo from the
pWare - AIX Open Source software for IBM AIX 5.3 and 6.1
site.
Here's what I'm trying to do.
I have a power user called "rtkprd" that several people now use. I want stop all logins with this user id, and force the users to login under their own id, then sudo to rtkprd. For example, I would log into the system as "thackerd" and then sudo to "rtkprd" to run the privileged commands.

My /etc/sudoers file has only a few lines at this point. It looks like this:
Code:
#Defaults
Defaults logfile=/var/log/sudo


#User privilege specification
root    ALL=(ALL)  ALL
thackerd  ALL = (rtkprd) ALL
I'm expecting to be able to login as thackerd, then "sudo -i rtkprd" to get rtkprd's powers. Instead I'm getting this error:

Code:
/home/thackerd> sudo -i rtkprd

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
Sorry, user thackerd is not allowed to execute '/usr/bin/ksh rtkprd' as root on rtkdev.mydomain.local.
How can I fix this?

Thanks in Advance!
Dave
Reply With Quote